From 113950cc6f57ca6fd07780bcd49ffc89f98fe072 Mon Sep 17 00:00:00 2001 From: RandyJC Date: Mon, 8 Dec 2025 23:17:21 +0100 Subject: [PATCH] small fix when reconnecting to the game --- packages/web/src/app/game/[gameId]/page.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web/src/app/game/[gameId]/page.tsx b/packages/web/src/app/game/[gameId]/page.tsx index 973e609..74bc169 100644 --- a/packages/web/src/app/game/[gameId]/page.tsx +++ b/packages/web/src/app/game/[gameId]/page.tsx @@ -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 }) => {