Not startedThis demo shows how to integrate casino games using iframes. When you click a game button, it first initializes a real session with the backend API, then loads the game iframe with that session ID.
Workflow:
1. Click game button → POST /api/sessions/init creates backend session
2. Receive sessionId from backend
3. URL updates to: ?game=mines&session=XXX
4. Load iframe with: /games/{game}?playerId=XXX&balance=XXX&sessionId=XXX
5. Game uses existing sessionId for all API calls
Features:
✅ Real backend session initialization via API
✅ Session persistence in URL (survives page refresh!)
✅ Automatic session restoration on page load
✅ Real-time balance updates via postMessage
✅ Fully isolated game instances
✅ Proper error handling and loading states
API URL: https://api.games.zambara.studio