...
There is a way to send a direct message to a connected client client with REST API query http://host:8081/rest-api/RESTCallbackdata/sendDatasend
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.
...