Bridges RealtimeSessionService's native lifecycle observables to the generic
SessionLifecycleEvent shape the runtime expects.
Lifecycle. Construct once at host bootstrap (see
ConversationsRuntimeBootstrap), pass to
ConversationsRuntime.Instance.UseSessionsAdapter(...), and the runtime owns
subscription/teardown via SessionsObserver. The adapter itself holds the
subscriptions to the voice service and exposes them merged into one stream.
Call Dispose when tearing down the host (typically only in tests —
production hosts run for the lifetime of the page).
Push stream of session lifecycle events. Subscribers are typically the
runtime's SessionsObserver, which re-broadcasts to widget consumers
via ConversationsRuntime.Instance.Sessions.SessionLifecycle$.
Methods
Dispose
Dispose():void
Tear down all subscriptions to the voice service and complete the
lifecycle stream. Safe to call multiple times.
Bridges
RealtimeSessionService's native lifecycle observables to the genericSessionLifecycleEventshape the runtime expects.Lifecycle. Construct once at host bootstrap (see
ConversationsRuntimeBootstrap), pass toConversationsRuntime.Instance.UseSessionsAdapter(...), and the runtime owns subscription/teardown viaSessionsObserver. The adapter itself holds the subscriptions to the voice service and exposes them merged into one stream.Call Dispose when tearing down the host (typically only in tests — production hosts run for the lifetime of the page).