A collection of WebSocket message types.

Enumeration Members

DRIVE_ROBOT: "drive-robot"

A client-server message containing instructions for manually driving a robot.

GAME_INTERRUPTED: "game-interrupted"

A two-way message indicating a game has been interrupted.

Note this does not include the game ending as a part of the normal flow of moves.

GAME_STARTED: "game-started"

A server-client message used to tell player two a game has started.

MOVE: "move"

A two-way message containing a single move.

POSITION: "position"

A server-client message defining the current position of a game. Used to allow clients to reconnect.

REGISTER_WEBSOCKET: "register-websocket"

A client-server message used to register a websocket with the server.

Generated using TypeDoc