Create a new LeaderboardSSE client
Configuration with API key and base URL
Connect to a leaderboard's SSE stream
The leaderboard to connect to
Event handlers for different SSE events
Connection options
Connection object with close method
Disconnect from a specific leaderboard
The leaderboard to disconnect from
Disconnect from all leaderboards
Check if connected to a specific leaderboard
The leaderboard to check
Whether connected to the leaderboard
Get connection status for all leaderboards
Map of leaderboard IDs to connection states
LeaderboardSSE client for Server-Sent Events
Example