Report each macOS app's build commit in /api/admin/status
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user