Skip to content

WebSocket Messages

Kenan Yildirim edited this page Nov 14, 2018 · 6 revisions

Note that stream_id here refers to the primary key of the stream in the streams database table.

Server → Client

[ "AFK_SET", is_afk ]

Informs the client that their AFK state has changed to is_afk.

[ "ERR", error_message ]

Indicates that an error occurred whilst processing the client's last message.

[ "RUSTLERS_SET", stream_id, rustler_count, afk_count ]

Informs the client of the current rustler and AFK counts for the stream with a given ID.

"STREAM_BANNED"

Informs the client that their current stream is banned.

[ "STREAM_GET", /* TODO */ ]
[ "STREAM_SET", /* TODO */ ]
[ "STREAMS_SET", /* TODO */ ]

Client → Server

[ "getStream", stream_id ]

Requests information from the server about the stream with ID stream_id.

[ "setAfk", is_afk ]

Requests that the server update the client's AFK status to is_afk.

[ "setStream", /* TODO */ ]

Requests that the server update the client's current stream to /* TODO */.

Clone this wiki locally