...
Web-server will invoke REST-method /OnDataEvent - steop step 2. As a result, client will receive status SESSION_STATUS.SEND_DATA_STATUS FAILED - step 4.
Пример Example:
2 | 3 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
There is a way to send a direct message to a connected client client with REST API query http://host:8081/RESTCallback/sendDatarest-api/data/send
To do this, pass the following JSON object
Code Block | ||||
---|---|---|---|---|
| ||||
{
"nodeId":"",
"sessionId":"/192.168.1.102:25789/192.168.1.101:8443",
"operationId":"",
"payload":{
"test":"test"
}
} |
Where sessionId is connected client session identifier that is received on backend while REST hook /connect handling.
In this case, the connected client receives the custom object where you can put any data, for example {"test":"test"} as shown above.
...