Modify the GET /api/join so it will new be a web socket, WS /api/join. This connection/stream will keep open for the duration of the race with the server sending the race state when it changes and the client acknowledges the messages.
The body won't be a render of the race as it is in Discord, but instead be a JSON object of the race board with the current position of each snail.
Requires #35
Modify the
GET /api/join
so it will new be a web socket,WS /api/join
. This connection/stream will keep open for the duration of the race with the server sending the race state when it changes and the client acknowledges the messages.The body won't be a render of the race as it is in Discord, but instead be a JSON object of the race board with the current position of each snail.