Skip to content
Developer Preview

readSessionDurability

Read sessionDurability off the handshake result.

Two readings are easy to conflate and must not be:

  • ABSENT is "durable", and that is decidable rather than fabricated: the member is optional only so the addition was additive, and no server that omits it has the ephemeral profile.
  • An UNRECOGNIZED value is NOT durable.: a client that does not know the value “MUST NOT infer any durability guarantee from it, and MUST NOT fall through to the absent-means-durable rule — that rule keys on the member being missing, not on its value being unfamiliar.” The enum is open for a reason, so the conservative read is “assume nothing survives this host”.

readSessionDurability(result: InitializeResult): SessionDurabilityProfile

Parameter Type Stability Presence Description
result InitializeResult required

SessionDurabilityProfile

Source

clients/sdk-ts/src/facade/host-death.ts:61

{
"kind": "Function",
"canonicalPath": "readSessionDurability"
}