Skip to main content
The following examples demonstrate the complete WebSocket workflow: connect → receive connected → subscribe to match events & scores → send heartbeat every 30 seconds → handle incoming messages → automatically reconnect using exponential backoff after disconnection. Replace YOUR_API_KEY with your actual API key. Use the language selector at the top to switch between different code examples.