Module client_messages

Module client_messages 

Source
Expand description

Client-to-server messages.

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

§Categories

  • Connection: Handshake, heartbeat, acknowledgments
  • Lobby: Join, leave, create lobbies
  • Game Lifecycle: Start, end games
  • Game Actions: Submit words, pass turn, use powers
  • Spectator: Watch games, join as player
  • Timer Vote: Vote to start turn timer
  • Admin: Administrative commands

Enums§

ClientMessage
Messages sent from client to server.