FinOCE / SweeperSmackdown

A Discord activity to play competitive minesweeper with your friends!
GNU General Public License v3.0
3 stars 0 forks source link

Leaving then quickly rejoining probably still triggers the disconnect #32

Open FinOCE opened 2 months ago

FinOCE commented 2 months ago

Maybe changing the user ID to be a composite of the normal user ID and the websocket user id. This would mean a new connection would be treated as a new player. Could possibly cause some other issues, like one person appearing to be in the same lobby twice. This could be fixed by requiring the user ID part of the composite be unique per lobby.

FinOCE commented 2 months ago

TODO: Make a new connection ID for the same user ID hijack the old board state, points, etc to continue playing seamlessly (and kick old connection)