@gameable/rooms
Variables
IDENTITY_TYPE
ts
const IDENTITY_TYPE: "id" = 'id';The Colyseus message (client.send(type, token), room.onMessage) that hands the page a fresh device token after a join whose own was missing or did not verify. It follows the welcome; the page keeps it in localStorage and sends it as the device join option from then on.
IDLE_CLOSE_CODE
ts
const IDLE_CLOSE_CODE: 4100 = 4100;The close code of a client the room dropped for sending no frame for its idleSeconds. Not one the SDK resumes by itself: the seat is held as after any drop, and a reload inside the hold gets it back.
INPUT_TYPE
ts
const INPUT_TYPE: "i" = 'i';sendBytes type of an INPUT frame.
ROOM_STATE
ts
const ROOM_STATE: 14 = 14;Colyseus Protocol.ROOM_STATE: the byte in front of our welcome.
ROOM_STATE_PATCH
ts
const ROOM_STATE_PATCH: 15 = 15;Colyseus Protocol.ROOM_STATE_PATCH: the byte in front of every other server frame.
SERIALIZER_ID
ts
const SERIALIZER_ID: "aos" = 'aos';The serializer id both sides register.
TEXT_FIRST_BYTE
ts
const TEXT_FIRST_BYTE: 123 = 0x7b;The first byte of a text frame ({); a rows frame starts with FrameKind.ROWS.
TEXT_TYPE
ts
const TEXT_TYPE: "t" = 't';sendBytes type of a client text frame.