WebSocket Message Format
Each message is a JSON object containing the following fields:
status: Current authentication status. Can beOK,ERR, or null.binary: Whether the included data is binary data. Can betrueorfalse.data: Message data. Ifbinaryis true, this field is a Base64 encoded byte array. Otherwise, it is a ASCII string.
Here are two examples of messages:
{
"status": null,
"binary": true,
"data": "AQ=="
}
{
"status": "OK",
"binary": false,
"data": "Sample Text"
}