SysSendSignal
Send the given data to all members of the given lobby.
Service | Operation |
---|---|
lobby | SYS_SEND_SIGNAL |
Method Parameters
Parameter | Description |
---|---|
lobbyId | Id of chosen lobby. |
signalData | Signal data to be sent. |
from | Optional 'from' data to be sent. |
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 signalData = {};
var from = {};
var lobbyProxy = bridge.getLobbyServiceProxy();
var postResult = lobbyProxy.sysSendSignal(lobbyId, signalData, from);
if (postResult.status == 200) {
// Success!
}
{
"service": "lobby",
"operation": "SYS_SEND_SIGNAL",
"data": {
"lobbyId": "55555:4v4:19",
"signalData": {},
"from": {}
}
}