Files
Connect-5/multiplayer.js
DeNNiiInc 69dc70ee06 Reliability: Fix disconnect logic, add game restoration, and prevent race conditions
- gameManager.js:
  - Added disconnectTimeouts Map to track/clear pending timeouts correctly
  - Updated handleDisconnect to not abandon game if player reconnects
  - Updated registerPlayer to clear timeouts and restore active game state
  - Added race condition checks to handleSurrender and acceptRematch

- multiplayer.js:
  - Updated handleRegistration to resume active game if data provided
  - Updated startMultiplayerGame to restore board state from server data
2025-12-22 19:25:15 +11:00

26 KiB