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 }) => {