Skip to main content
Version: 5.7.0

GetLobbyData

Returns the data for the specified lobby, including member data.

ServiceOperation
lobbyGET_LOBBY_DATA

Method Parameters

ParameterDescription
lobbyIdId of chosen lobby.

Usage

http://localhost:3000
string lobbyId = "13229:Relay_lobbyT_v2:20";
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.GetLobbyData(lobbyId, successCallback, failureCallback);
JSON Response
{
"data": {
"id": "13229:Relay_lobbyT_v2:20",
"lobbyType": "Relay_lobbyT_v2",
"state": "setup",
"rating": 0,
"lobbyTypeDef": {
"lobbyTypeId": "Relay_lobbyT_v2",
"teams": {
"all": {
"minUsers": 1,
"maxUsers": 8,
"autoAssign": true,
"code": "all"
}
},
"rules": {
"allowEarlyStartWithoutMax": true,
"forceOnTimeStartWithoutReady": true,
"allowJoinInProgress": false,
"onTimeStartSecs": 600,
"disbandOnStart": true,
"everyReadyMinPercent": 15,
"everyReadyMinNum": 1,
"earliestStartSecs": 1,
"tooLateSecs": 600
},
"desc": "starts when 1 player is ready"
},
"settings": {},
"version": 1,
"connectData": {},
"timetable": {
"createdAt": 1631050042177,
"early": 1631050043177,
"onTime": 1631050642177,
"tooLate": 1631050642177
},
"cRegions": [],
"round": 1,
"ownerCxId": "13229:db4be46d-1e99-41fe-9402-a0e8f7cd7cb5:p57kebat767ogdtesnp5cmd46p",
"legacyLobbyOwnerEnabled": true,
"owner": "db4be46d-1e99-41fe-9402-a0e8f7cd7cb5",
"numMembers": 1,
"members": [
{
"profileId": "db4be46d-1e99-41fe-9402-a0e8f7cd7cb5",
"name": "",
"pic": "",
"rating": 1200,
"team": "all",
"isReady": true,
"extra": {},
"cxId": "13229:db4be46d-1e99-41fe-9402-a0e8f7cd7cb5:p57kebat767ogdtesnp5cmd46p"
}
]
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
40601RTT_NOT_ENABLEDRTT must be enabled for this feature
40613LOBBY_NOT_FOUNDUnrecognized lobby, the specified lobby does not exist