SysRoomReady
Indicates that a room is ready for use by the members of the given lobby.
| Service | Operation |
|---|---|
| lobby | SYS_ROOM_READY |
Method Parameters
| Parameter | Description |
|---|---|
| lobbyId | The id of lobby that this room server is associated with. |
| connectData | Optionally override the connectData of the lobby instance. Pass null or to preserve the existing connectData. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// N/A
var lobbyId = "55555:4v4:19";
var connectData = {
"address": "1.2.3.4",
"ports": {
"udp": 9000,
"tcp": 9000,
"ws": 9001
}
};
var lobbyProxy = bridge.getLobbyServiceProxy();
var postResult = lobbyProxy.sysRoomReady(lobbyId, connectData);
if (postResult.status == 200) {
// Success!
}
{
"service": "lobby",
"operation": "SYS_ROOM_READY",
"data": {
"lobbyId": "55555:4v4:19",
"connectData": {
"address": "1.2.3.4",
"ports": {
"udp": 9000,
"tcp": 9000,
"ws": 9001
}
}
}
}
JSON Response
{
"status": 200,
"data": {}
}
Common Error Code
Status Codes
| Code | Name | Description |
|---|---|---|
| 40601 | RTT_NOT_ENABLED | RTT must be enabled for this feature |