Show connected clients and their last human action in Status

This commit is contained in:
Ian Gulliver
2026-10-17 23:24:26 -07:00
parent 28c4549151
commit 8d9ba10849
8 changed files with 332 additions and 246 deletions
+2
View File
@@ -61,7 +61,9 @@ func (s *Server) StreamEvents(w http.ResponseWriter, r *http.Request, params api
Commit: r.Header.Get("Byre-Commit"),
ConnectedAt: time.Now(),
})
defer s.clientsChanged()
defer s.hub.unsubscribe(live)
s.clientsChanged()
for {
events, err := backfill(last)