-
Notifications
You must be signed in to change notification settings - Fork 24
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.
[ "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 */ ]
[ "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 */
.