Skip to main content

Real-time Communication

Real-time Communication enables seamless interaction between the Game Platform and Casino UI through PostMessage events, WebSocket connections, and synchronized data updates during tournament gameplay.

Communication Architecture

Communication Patterns

  • Game Platform � Casino UI: PostMessage for cross-frame communication
  • Game Platform � Tournament System: WebSocket for real-time updates
  • Game Platform � Event System: SQS events for external notifications
  • Event System � Casino System: Webhooks for business logic integration

PostMessage Communication

PostMessage Event Types

Tournament Events

Player Events

PostMessage Implementation

Game Platform Side (Sender)

Casino UI Side (Receiver)

WebSocket Communication

Tournament System WebSocket

Game Room WebSocket

Data Synchronization

Real-time Leaderboard Updates

State Persistence

Error Handling & Resilience

Connection Recovery

Next Steps

Event Reporting

Learn how to report tournament events via SQS for external system integration.

Casino Integration

Explore the external APIs used by Casino Systems for tournament management.