Get connection state
Get subscribed leaderboards
Get permanent error if connection was terminated due to a permanent error
Connect to the WebSocket server
OptionalleaderboardId: stringOptionaluserId: stringDisconnect from the WebSocket server
Subscribe to a leaderboard
OptionaluserId: stringUnsubscribe from a leaderboard
Manually trigger a reconnection attempt Useful for application-level retry logic
WebSocket client for real-time leaderboard updates
WebSocket connections now work through the main API domain with full Cloudflare proxy protection. Both WebSocket and SSE are supported options for real-time updates.
See
LeaderboardSSE - Alternative method using Server-Sent Events