Commit Graph

11 Commits

Author SHA1 Message Date
8b275de519 CRITICAL FIX: Resolve race condition in socket listener setup
- Set up all socket listeners BEFORE connection completes
- Remove nested 'connect' listener that caused race condition
- Add comprehensive logging for registration flow
- Update all listeners to use socket parameter
- Fix window.multiplayerClient reference in retry link

This fixes the 'Registering...' stuck state issue.
2025-12-13 21:35:47 +11:00
831aa0856d Add debug logging and fix registerPlayer UI feedback 2025-12-13 20:55:30 +11:00
b57611f0c4 Fix variable scope: Ensure global access to game and multiplayer client 2025-12-13 20:34:07 +11:00
dbc3f40019 Fix Join Multiplayer race condition: Save username before socket ready 2025-12-13 20:18:44 +11:00
0739ab6257 Improve UX: Prompt for username immediately in multiplayer 2025-12-13 20:17:23 +11:00
2d34ceb8bd Fix production connection: Remove bad proxies, add UI feedback 2025-12-13 20:13:29 +11:00
d959102db3 Fix multiplayer connection: Add redundant proxies and Socket.io CDN 2025-12-13 19:54:13 +11:00
858a5e52d4 Fix: Use dynamic server URL for Socket.io connection (production fix) 2025-12-13 19:21:29 +11:00
e06ab2457d Fix auto-login loading players bug 2025-12-13 15:06:18 +11:00
a7f3bf9b9e Add localStorage username persistence for auto-login 2025-12-13 15:02:30 +11:00
9465409b2f Add complete multiplayer system with real-time gameplay, challenge system, and 50x50 board option 2025-12-13 14:59:44 +11:00