Expand description
Module for converting between legacy and new message formats.
This allows gradual migration without breaking the existing frontend.
Functionsยง
- legacy_
game_ state_ to_ snapshot - Convert legacy game state JSON to new
GameSnapshotformat. - parse_
client_ message - Parse a raw JSON message, handling both legacy and new formats.
- serialize_
server_ message - Serialize a server message, optionally wrapping in an envelope.
- snapshot_
to_ legacy_ game_ state - Convert new
GameSnapshotto legacygame_statemessage format.