SysRoomSessionEnded
Indicates that the given server instance has ended.
Service | Operation |
---|---|
roomServer | SYS_ROOM_SESSION_ENDED |
Method Parameters
Parameter | Description |
---|---|
serverId | The room server instance id. |
serverContext | JSON object containing server context data. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- 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
var serverId = "i-abcdef";
var serverContext = {
"abc": "xyz"
};
var roomServerProxy = bridge.getRoomserverServiceProxy();
var postResult = roomServerProxy.sysRoomSessionEnded(serverId, serverContext);
{
"service":"roomServer",
"operation":"SYS_ROOM_SESSION_ENDED",
"data":{
"serverId":"i-abcdef",
"serverContext":{
"abc":"xyz"
}
}
}
JSON Response
{
"status" : 200,
"data" : {}
}