Skip to content

JSON-RPC 2.0 websocket response format

Compare
Choose a tag to compare
@xtrime-ru xtrime-ru released this 15 Jan 22:54
· 415 commits to master since this release

Format of updates in events websocket endpoint was changed to JSON-RPC 2.0 standard.

Now updates looks like:

{
    "jsonrpc":"2.0",
    "result":{
        "session":"session",
        "update":{
            "_":"updateUserStatus",
            "user_id":64459193,
            "status":{
                "_":"userStatusOnline",
                "expires":1579128837
            }
        }
    },
    "id":null
}