SessionOptions

data class SessionOptions(val room: Room? = null, val agentConnectTimeout: Duration = 20.seconds, val tokenRequestOptions: TokenRequestOptions = TokenRequestOptions())

Options for creating a Session.

See also

Constructors

Link copied to clipboard
constructor(room: Room? = null, agentConnectTimeout: Duration = 20.seconds, tokenRequestOptions: TokenRequestOptions = TokenRequestOptions())

Properties

Link copied to clipboard

Amount of time to wait for an agent to join the room, before transitioning the Agent to the failure state.

Link copied to clipboard
val room: Room? = null

The Room to use. If null is passed, one will be created for you.

Link copied to clipboard
val tokenRequestOptions: TokenRequestOptions

The options to use when fetching the token, if it is fetching from a ConfigurableTokenSource.