Skip to main content
Version: 5.7.0

JoinLobby

Adds the caller to the given lobby instance.

ServiceOperation
lobbyJOIN_LOBBY

Method Parameters

ParameterDescription
lobbyIdThe lobby instance to join.
otherUserCxIdsArray of other users (i.e. party members) to add to the lobby as well. The call will fail if all users can't be added.
isReadyInitial ready-status of this user.
extraJsonInitial extra-data about this user.
teamCodePreferred team for this user, if applicable. Send "" or null for automatic assignment.

Usage

http://localhost:3000
string lobbyId = "55555:4v4:3";
string[] otherUserCxIds = { "55555:aaa-bbb-ccc-ddd:asdfjkl" };
bool isReady = false;
string extraJson = "{}";
string teamCode = "blue";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.LobbyService.JoinLobby(lobbyId, otherUserCxIds, isReady, extraJson, teamCode, successCallback, failureCallback);