SysRoomReady
Tells the lobby system that a room server is ready to go.
Service | Operation |
---|---|
lobby | SYS_ROOM_READY |
Method Parameters
Parameter | Description |
---|---|
lobbyId | The id of lobby that this room server is associated with. |
connectInfo | Info the clients will use to connect to the room server. |
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:4v4:19";
var connectInfo = {};
var lobbyProxy = bridge.getLobbyServiceProxy();
var postResult = lobbyProxy.sysRoomReady(lobbyId, connectInfo);
if (postResult.status == 200) {
// Success!
}
{
"service": "lobby",
"operation": "SYS_ROOM_READY",
"data": {
"lobbyId": "55555:4v4:19",
"connectInfo": {}
}
}
JSON Response
{
"status": 200,
"data": {}
}
Common Error Code
Status Codes
Code | Name | Description |
---|---|---|
40601 | RTT_NOT_ENABLED | RTT must be enabled for this feature |