GetLobbyData
Returns the data for the specified lobby, including member data.
Service | Operation |
---|---|
lobby | GET_LOBBY_DATA |
Method Parameters
Parameter | Description |
---|---|
lobbyId | Id of chosen lobby. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var lobbyId = "55555:4x4:19";
var lobbyProxy = bridge.getLobbyServiceProxy();
var postResult = lobbyProxy.getLobbyData(lobbyId);
if (postResult.status == 200) {
// Success!
}
{
"service": "lobby",
"operation": "GET_LOBBY_DATA",
"data": {
"lobbyId": "55555:4x4:19"
}
}
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
Code | Name | Description |
---|---|---|
40601 | RTT_NOT_ENABLED | RTT must be enabled for this feature |