Skip to content

WireFormat

Defined in: packages/engine/src/gameplay/replication/protocol.ts:87

How the room spells its messages to one client.

Binary: "binary-1"

Defined in: packages/engine/src/gameplay/replication/protocol.ts:92

Bytes, a third or less of the text’s weight: every player’s. The number is the codec’s version, known strings included: a change to its spelling takes the next, so a page and a room built apart fall back to JSON rather than misread each other.


Json: "json"

Defined in: packages/engine/src/gameplay/replication/protocol.ts:94

JSON text, which an agent or a person reads as it arrives.