A collection of WebSocket message types.

Enumeration Members

DRIVE_ROBOT: "drive-robot"

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

GAME_FINISHED: "game-finished"

Indicates the game is finished and should be restarted

GAME_HELD: "game-held"

Indicates the game is waiting for a user to respond

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.

SET_ROBOT_VARIABLE: "set-robot-variable"

A client-server message used to update a variable (like rotations per square) on a robot.

SIMULATOR_UPDATE: "simulator-update"

A message sent from server to all clients for updating the robot simulator.

Generated using TypeDoc