small fix when reconnecting to the game

This commit is contained in:
RandyJC
2025-12-08 23:17:21 +01:00
parent d8a9fb2dca
commit 113950cc6f

View File

@@ -28,6 +28,11 @@ const Game = () => {
}
})
useEvent("disconnect", () => {
// Force reconnection attempt and re-emit player reconnect once socket is back
socket?.connect()
})
useEvent(
"player:successReconnect",
({ gameId, status, player, currentQuestion }) => {