Realtime Insights

useLiveStats() / GET /v1/stats/live — a live view of the relay hub: connected clients, channel fan-out, and trade throughput, straight from the StreamHub DO. Polls every 2.5s.

connecting…
const { stats } = useLiveStats({ refreshMs: 2500 })
// stats.connections · stats.channels[] · stats.tradesPerMin · stats.lastTrades[]