- Description: Emitted (to the player's channel) when a message is sent to the user.
- Payload:
sender_id
(string): Identifier of the sender.message
(string): Content of the message.
- Description: Emitted (to the player's channel) when a move is made in the game.
- Payload:
move_notation
(string): Notation of the move.board
(object): State of the board after the move.
- Description: Emitted (to the game room) when the game ends in a draw.
- Description: Emitted (to the game room) when a checkmate occurs.
- Payload:
winner_id
(string): Identifier of the winner.
- Description: Emitted (to the player's channel) when a player wins the game.
- Description: Emitted (to the player's channel) when a player loses the game.
- Description: Emitted (to the player's channel) when a game starts.
- Payload:
game_id
(string): Identifier of the game.game_room
(string): Room where the game is played.