Skip to main content
Version: 5.7.0

GetRegionsForLobbies

Retrieves the region settings for each of the given lobby types.

ServiceOperation
lobbyGET_REGIONS_FOR_LOBBIES

Method Parameters

ParameterDescription
lobbyTypesTypes of lobby being queried.

Usage

http://localhost:3000
string[] lobbyTypes = { "2v2", "4v4" };
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.GetRegionsForLobbies(lobbyTypes, successCallback, failureCallback);
JSON Response
{
"data": {
"lobbyTypeRegions": {
"Relay_lobbyT_v2": [
"ca-central-1"
]
},
"regionPingData": {
"ca-central-1": {
"type": "PING",
"target": "dynamodb.ca-central-1.amazonaws.com"
}
}
},
"status": 200
}