SysSendEventRTTOnly
Sends an event to the designated user ID with the attached json data. Will only deliver the event via RTT. Will not persist the event.
tip
The blank evId from the response indicates that the event has not been persisted and is in fact RTT-only.
Service | Operation |
---|---|
event | SYS_SEND_RTT_ONLY |
Method Parameters
Parameter | Description |
---|---|
toId | The id of the player who is being sent the event. |
eventType | The user-defined type of the event. |
eventData | The user-defined data for this event encoded in JSON. |
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 toId = "profile1";
var eventType = "type1";
var eventData = {
"someMapAttribute": "someValue"
};
var eventProxy = bridge.getEventServiceProxy();
var postResult = eventProxy.sysSendEventRTTOnly(toId, eventType, eventData);
if (postResult.status == 200) {
// Success!
}
{
"service": "event",
"operation": "SYS_SEND_RTT_ONLY",
"data":
{
"toId": "profile1",
"eventType": "type1",
"eventData": {
"someMapAttribute": "someValue"
}
}
}
JSON Response
{
"data": {
"evId": ""
},
"status": 200
}