Table of Contents

GetActiveLobbySessionForLobbyId

Methods
public Task<LobbySession> GetActiveLobbySessionForLobbyId(string lobbyId, CancellationToken cancellationToken = default)

Get a LobbySession instance for a Lobby that you have joined and you're a part of.

Parameters
Type Name Description
string lobbyId

Id of the lobby you want to get the LobbySession for.

CancellationToken cancellationToken

Optional parameter to cancel the request.

Returns
Type Description
Task<LobbySession>

A task that represents the asynchronous operation. When the task completes successfully, it will contain a LobbySession if this player account is still in the lobby with the specified lobbyId; otherwise, it will contain null.

Exceptions
Type Condition
TaskCanceledException

Thrown when the operation is canceled using the cancellationToken.

ResponseDeserializationException

Thrown when the response from the server cannot be deserialized into a LobbySession.