var ws = new WebSocket('wss://ws.binaryws.com/websockets/v3?app_id=XXX');where
app_idis your Application ID obtained as described in the API guide.
You can now send data up and down the websocket using any of the messages described in the API playground.
Note: to receive responses where English text has been translated to another language, append the language code to the connection URL as follows:
var ws = new WebSocket('wss://ws.binaryws.com/websockets/v3?app_id=XXX&l=RU');
Data transfer in both directions is done with structured JSON-encoded data. All field name identifiers, and most field values, will be double-quoted in the encoded data. The same applies to receiving messages: each message is a serialized JSON-encoded string.