One room per run, made at dispatch: a publish-only token for the bot, a subscribe-only token for the agent.

Constructors

Methods

Constructors

Methods

  • Mints the listening agent's subscribe-only token for a run's room, when the agent is about to connect. The manager keeps no token, and one minted at dispatch may have expired by the time the agent joins, since a run can wait in the waiting room longer than a token lives.

    Parameters

    • roomName: string

      The run's room, as its dispatch record names it (run.dispatch.roomName).

    Returns Promise<string>

  • Deletes the room; a room that is already gone is not an error. The service reports a missing room with status 404; any other rejection, an object or not, is passed on as it is.

    Parameters

    • name: string

    Returns Promise<void>