Member Junction
    Preparing search index...

    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 Stop cancels 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.

    Index

    Constructors

    Accessors

    • get State$(): Observable<LiveKitRoomTurnState | null>

      The latest state; emits the current value on subscribe. null until a room with agents has answered.

      Returns Observable<LiveKitRoomTurnState | null>

    Methods

    • 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.

      Parameters

      • roomName: string

        The room to poll.

      Returns void