Table of Contents

JoinLobbyWithTokenAsync

Methods
public Task<LobbySession> JoinLobbyWithTokenAsync(string inviteToken, List<CloudAttribute> playerAttr = null, CancellationToken cancellationToken = default)

Join the Lobby an invite token was minted for.

Parameters
Type Name Description
string inviteToken

The invite token, as it was handed to you.

List<CloudAttribute> playerAttr

Optional parameter to add player attributes to the joined Lobby.

CancellationToken cancellationToken

Optional parameter to cancel the request.

Returns
Type Description
Task<LobbySession>

The joined Lobby.

Remarks

An invite token is minted by coherence Cloud through CreateInviteTokenAsync(TimeSpan?, CancellationToken). Hand it to other players. It can be used by multiple users, multiple times, until it expires.

Joining with a token too often (currently over 30 a minute) fails with Coherence.Runtime.ErrorCode.LobbyRateLimited.

See Also
CreateInviteTokenAsync(TimeSpan?, CancellationToken)
AcceptLobbyInviteAsync(LobbyInvite, List<CloudAttribute>, LobbyReservations, CancellationToken)
ResolveLobbyFromInviteTokenAsync(string, CancellationToken)