-
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:Claude Opus 4.6 <noreply@anthropic.com>
317f8d20