Skip to main content
To check the number of active WebSocket connections currently associated with your account, use the /connections endpoint.

Endpoint

GET https://api.uniblock.dev/v1/wss/connections

Authentication

This endpoint requires your Uniblock API key in the request header.
HeaderValue
X-API-KEY<YOUR_API_KEY>

Current Limits

  • Max Concurrent Connections: 10 per API key.

Best Practices

  • Connection Pooling: Reuse existing connections where possible instead of opening new connections for every subscription.
  • Graceful Shutdown: Explicitly close WebSocket connections when they are no longer needed to stay within usage limits.
  • Monitoring: Periodically poll the /connections endpoint in large-scale distributed applications to avoid hitting hard caps.