Skip to main content
Version: 5.7.0

JoinLobbyWithPingData

Adds the caller to the given lobby instance.

Use PingRegions to generate the ping data.

ServiceOperation
lobbyJOIN_LOBBY_WITH_PING_DATA

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.
pingDataPing times for each region available for this lobby type. Can use GET_REGIONS_FOR_LOBBIES to retreive the list of regions for a given lobby type. Ping data is automatically passed in on the clients.

Usage

http://localhost:3000
string lobbyId = "123456:4v4:3";
string[] otherUserCxIds = { "123456: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.JoinLobbyWithPingData(lobbyId, otherUserCxIds, isReady, extraJson, teamCode, successCallback, failureCallback);