Realtime API
Point your client to the Websocket of the server you want to connect to:
1
wss://[ABC.DOMAIN.COM]/websocket
Copied!
Our real-time API is composed of two elements: Method Calls and Subscriptions. Both of them are supported directly in the websocket connection.
To make it possible to have everything working on the same connection we use RPC with the following format.
1
{
2
"msg": "type-of-communication",
3
"id": "unique-id",
4
... // per call defined data
5
}
Copied!
The type of communication is defined according to the call:
  • Method Calls: method
  • Please note, the server will send you "ping" and you must respond with "pong" otherwise the server will close the connection.
Before requesting any method / subscription you have to send a connect message:
1
{
2
"msg": "connect",
3
"version": "1",
4
"support": ["1"]
5
}
Copied!

Resources

Last modified 8mo ago
Export as PDF
Copy link
Edit on GitHub
Contents
Resources