Draft mode is a longer game, and it's exposed some problems with disconnects as we've playtested it
We need a way for players to rejoin games they've dropped from
Solution:
The socket.io documentation recommends not using socket.id as the source of truth, as it is ephemeral. They recommend an approach with using socket.auth, as well as some middleware to handle persistent sessions. https://socket.io/get-started/private-messaging-part-2/
The work here is simply to switch the whole app away from socket.id-based helpers - no work yet to make sessions persistent, but this just lays the groundwork for that
Problem:
Solution: The socket.io documentation recommends not using socket.id as the source of truth, as it is ephemeral. They recommend an approach with using socket.auth, as well as some middleware to handle persistent sessions. https://socket.io/get-started/private-messaging-part-2/
The work here is simply to switch the whole app away from socket.id-based helpers - no work yet to make sessions persistent, but this just lays the groundwork for that