Skip to content
Developer Preview

SessionOptions

Options for constructing a Session directly. Sessions opened through MuseClient are configured for you; build one yourself when you manage the connection — or omit the connection to fold recorded events with no host at all.

Property Type Stability Presence Description
connection Connection optional The wire seam the submit verbs author through. OPTIONAL because fold-only construction is a real current use, not a hypothetical one: every transport-less arm in this package builds a Session with no host at all.
discarded DiscardedSessions optional What an ephemeral host death already discarded, shared across the sessions ONE client opened. Omitted, this session remembers only its own discards — the previous behaviour.
durability SessionDurabilityProfile required Required, not defaulted. Whether this session survives its host decides what happens to every in-flight item and command when the host dies, and a default would let a caller skip reading the handshake and silently inherit the wrong obligation. readSessionDurability turns an InitializeResult into this value.
opening SessionOpening optional Set by MuseClient; see SessionOpening.
sessionId string required
Source

clients/sdk-ts/src/facade/session.ts:94

{
"kind": "Interface",
"canonicalPath": "SessionOptions"
}