• Mahmoud Aglan's avatar
    fix: wire match-live into Chess and Ludo — enables reconnect on refresh · 317f8d20
    Mahmoud Aglan authored
    Chess game scene:
    - Imports and calls matchLive.start(matchId, 'chess', callbacks)
    - Creates localStorage entry → browser refresh auto-resumes
    - matchLive.session.destroy() on endGame → clears recovery
    
    Ludo game scene:
    - Same pattern: matchLive.start(matchId, 'ludo', callbacks)
    - Clears session on endGame
    
    Now the flow works:
    1. Player enters live game → matchLive.start() saves to localStorage
    2. Player refreshes browser → engine boot finds recovery → verifies server → auto-rejoins
    3. Game ends normally → matchLive.session.destroy() clears localStorage
    4. Player goes to homepage after game → no recovery popup (correct)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    317f8d20
Name
Last commit
Last update
..
00-final-attempt.png Loading commit data...
00-ip-test.png Loading commit data...
01-home.png Loading commit data...
01-initial.png Loading commit data...
02-menu.png Loading commit data...
02-no-ludo.png Loading commit data...
03-board.png Loading commit data...
04-main-screen.png Loading commit data...
04-roll1.png Loading commit data...
04-roll2.png Loading commit data...
debug-page.png Loading commit data...
fail-no-home.png Loading commit data...