Something went wrong. Try again.
Something went wrong. Try again.
Index and aggregate federated view counts
When a LiveViewCount record arrives via firehose, store it in a go-cache (2min TTL) keyed by streamer:server. GetViewerCount now sums local HLS connections + all federated counts, so the websocket, HTTP API, and getLiveUsers XRPC all automatically include federated viewer counts with no additional changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Eli Mallon Co-author Claude Opus 4.6 (1M context) Date (Mar 22, 2026, 12:47 AM UTC) Commit
Copy SHA
Parent 68ed6b97 68ed6b97875d44a365d5a9fa14d81f9420eb1686