1.3 Protocol: tr_json2
The WebSocket API uses the tr_json2 protocol, which is a text-based JSON protocol representing Open Message Model constructs and featuring human readability.
tr_json2 follows JSON standards and all keys and values of the protocol are case sensitive.
To initialize a WebSocket connection for using the WebSocket API, set the subprotocol as tr_json2 through the WebSocket library of choice or ensure that the Sec-WebSocket-Protocol header value in the initial WebSocket connection is tr_json2.
WebSocket Library (Node.js) |
... _websocket = new WebSocket(WS_URL, "tr_json2"); ... |
HTTP Header |
... Sec-WebSocket-Protocol: tr_json2 ... |