Loading the API documentation
No notifications.
Language
English
No other language is available yet.
Loading the API documentation
/v1/stats/onlineOpen realtime connections across API replicas
The number of open /v1/stream WebSocket connections summed over every API replica. There are no accounts, so this counts open connections, not unique people (a browser tab can hold more than one, and the count can include the caller's own open stream connection; a REST caller with no stream has none). Each replica announces its own count every PRESENCE_INTERVAL_MS (default 5 s) over the replica fan-out's existing LISTEN connection (pg_notify on PRESENCE_CHANNEL, no table and no extra database connection) and sums the peers heard within PRESENCE_TTL_MS (default 15 s) plus its own live count. replicas is how many replicas the sum covers; it is 1 when STREAM_FANOUT is not postgres (local count only). Only an aggregate integer is kept: no address or IP. Never cached (Cache-Control: no-store); the web app polls it only while its status card is open.
No parameters.
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | OnlineStatsEnvelope |
curl -s 'https://exchange.zethareum.com/v1/stats/online'