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”.
Signature
Section titled “Signature”readSessionDurability(result: InitializeResult): SessionDurabilityProfile
Parameters
Section titled “Parameters”| Parameter | Type | Stability | Presence | Description |
|---|---|---|---|---|
result |
InitializeResult |
required |
Returns
Section titled “Returns”SessionDurabilityProfile
Source
clients/sdk-ts/src/facade/host-death.ts:61
{ "kind": "Function", "canonicalPath": "readSessionDurability"}