RealtimeSessionContext
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:65
Context passed to MaelstromRealtimeBaseOptions.onSession for one built session.
Extends
Section titled “Extends”RealtimeSessionInit<Provider>
Type Parameters
Section titled “Type Parameters”Provider
Section titled “Provider”Provider = undefined
Properties
Section titled “Properties”adapter
Section titled “adapter”
readonlyadapter:RealtimeProviderAdapter
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:80
The adapter MaelstromRealtimeBaseOptions.createAdapter returned for this session, for provider-specific calls the session does not expose.
instanceId
Section titled “instanceId”
readonlyinstanceId:string
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:74
Random identifier of this one built session. Unlike sessionId, it
changes on every provider switch and on every rebuild after the last
consumer unmounts, so diagnostics can tell provider instances apart.
orchestrator
Section titled “orchestrator”
readonlyorchestrator:Orchestrator
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:68
Orchestrator whose shared session this is.
provider
Section titled “provider”
readonlyprovider:Provider
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:54
Voice provider this session is built for: the initial provider, or the
one chosen through UseVoiceResult.switchProvider. undefined
when the extension declares no provider.
Inherited from
Section titled “Inherited from”sessionId
Section titled “sessionId”
readonlysessionId:SessionId
Defined in: packages/react-realtime/src/lib/maelstrom-realtime.ts:48
Maelstrom session identifier, used to scope provider-side resources. It stays the same across provider switches and remounts.