Module server_messages

Module server_messages 

Source
Expand description

Server-to-client messages.

All messages that can be sent from the backend server to frontend clients. Messages are tagged with type field for JSON serialization.

§Categories

  • Connection: Handshake responses, heartbeat acks
  • Lobby State: Snapshots and deltas for lobby state
  • Game State: Snapshots and deltas for game state
  • Events: Discrete events (player joined, word scored, etc.)
  • Errors: Error responses with codes and messages

Structs§

LobbySnapshot
Complete lobby state snapshot.

Enums§

ServerMessage
Messages sent from server to client.