Report each macOS app's build commit in /api/admin/status

This commit is contained in:
Ian Gulliver
2026-10-17 15:32:35 -07:00
parent 702ce49ff1
commit 24b04966dc
9 changed files with 306 additions and 241 deletions
+6 -1
View File
@@ -55,7 +55,12 @@ func (s *Server) StreamEvents(w http.ResponseWriter, r *http.Request, params api
w.Header().Set("Cache-Control", "no-cache")
w.WriteHeader(http.StatusOK)
live := s.hub.subscribe()
live := s.hub.subscribe(api.ConnectedClient{
Login: viewer,
Host: r.Header.Get("Byre-Host"),
Commit: r.Header.Get("Byre-Commit"),
ConnectedAt: time.Now(),
})
defer s.hub.unsubscribe(live)
for {