We can save on local storage the room id of the last game the player was playing.
if the player disconnects in poupose, I should remove the ID from local storage to not reconnect
When the home page loads.
if the player has a lastRoomId saved locally
verify if the gameroom still exists
if it exists reconnect
We can save on local storage the room id of the last game the player was playing.
if the player disconnects in poupose, I should remove the ID from local storage to not reconnect
When the home page loads.
if the player has a lastRoomId saved locally
verify if the gameroom still exists
if it exists reconnect