Skip to main content

3.4 Asynchronous Server Message Format

Much like synchronous responses, all the asynchronous messages are wrapped in a generic envelope. The envelope is a JSON object with fields:

ts [float]

The time when the message was transmitted through the async connection, as an Unix timestamp.

data [list[list[string, object], ...]]

The payload of the response, as a list of messages in the form of 2-items lists: [code, payload]. Possible codes and their matching payload types are described in Asynchronous Server Message Types.

{
"ts": timestamp,
"data": [
[ code1, payload1 ],
[ code2, payload2 ],
...
]
}