Which gives the game ID and the URL for connecting to the game.
This allows the client to display this information so that the player
can easily share it with friends, etc.
The following event types will be returned by the server:
The following event types will be returned by the server:
- WHEN: When a client first connections
+ WHEN: When a client first connects
+
+ WHAT: Static information about the game (will not change)
+ event: game-info
+ data: {"id":"WXYZ","url":"https://lmno.games/WXYZ"}
+
+ TYPE: game-state
+
+ WHEN: When a client first connects
+
+ WHAT: Snapshot of the current dynamic game state
+
+ EXAMPLE:
+
- data: {"moves":[0,8],"board":["X","","","","","","","","O"],"next_player":"X"}
+ data: {"moves":[0,8],"board":["X","","","","","","","","O"],"next_player":"X"}