RoomMessageType
Enumeration Members
Section titled “Enumeration Members”Ack:
"ack"
The player’s own word on what the player controls, at the tick it names: after each delta the player receives, at every send to a page that predicts, and alone once a second as the room’s heartbeat.
Causes
Section titled “Causes”Causes:
"causes"
Which events of the delta it comes just ahead of the sender’s commands caused: sent to the sender alone, so no other page learns who acted.
Delta:
"delta"
What changed since the last send, to a page it changed something for: none goes where nothing changed.
Moved:
"moved"
Where a teleport sent the player, from a room spawnite play runs,
just before it closes the player’s socket: the page opens itself on
that room with the hint, as the app does after a hosted room’s
teleport. A hosted room never sends it.
Owned:
"owned"
The player’s own character’s traits that go to the player alone, sent after a delta and its acknowledgement to a page whose join did not ask for them in the acknowledgement.
Pong:
"pong"
The answer to a ping.
Results
Section titled “Results”Results:
"results"
Results of the player’s commands sent apart from an acknowledgement: before a kick’s close frame and the room’s own.
Resync
Section titled “Resync”Resync:
"resync"
The world whole, to a page the room skipped while the player’s socket held too much it had sent the player, as the socket drains: the player’s page brings what it holds to it by key, and the word for the player follows in the same frame.
ShotRefused
Section titled “ShotRefused”ShotRefused:
"shotRefused"
A shot of the player’s the room refused, sent as it refuses it, to a page that numbered the shot.
TextChat
Section titled “TextChat”TextChat:
"text-chat"
Text chat: the module textChat beside this one lists its kinds.
Voice:
"voice"
A voice signal: the module beside this one lists them.
Welcome
Section titled “Welcome”Welcome:
"welcome"
The room’s answer to a join: the character it spawned for the client and the world as it stands.