Loads one snapshot of a room's turn-taking state.
The gap between polls. Clamped to TURN_POLL_MIN_INTERVAL_MS.
The most recent poll error (null when the last poll succeeded); emits the current value on subscribe.
Whether the poller is running.
The most recent poll error, or null when the last poll succeeded.
The room being polled, or null when stopped.
The latest state, synchronously.
The latest state; emits the current value on subscribe. null until a room with agents has answered.
Stops and releases the stream.
Starts polling a room (immediately, then on the interval). Idempotent for the room already being polled; switching rooms restarts and clears the previous room's state.
The room to poll.
Stops polling, cancels any request in flight and clears the state. Safe to call when already stopped.
Keeps one room's live turn-taking state fresh by polling. A new request is only issued once the previous one has settled (so a slow server is never piled onto), a failed poll keeps the last good state and records the error, and
Stopcancels anything in flight so a late reply can never resurrect a closed panel.Polling — not a subscription — because the state is read-only and the transport-layer pattern for a server-to-client signal this small is a typed query. See
GraphQLLiveKitClient.GetRoomTurnState.