SetSessionPresence attaches the live-session registry read by GET /api/v1/sessions and written by GET /api/v1/events/stream (PLAN-2558 S1). Nil-checked at both ends, so a server constructed without one still streams events — it just can't answer "who is listening?", and says so with a 503 rather tha
(p SessionPresence)
| 856 | // listening?", and says so with a 503 rather than an empty list (see |
| 857 | // handleListSessions). |
| 858 | func (s *Server) SetSessionPresence(p SessionPresence) { |
| 859 | s.sessionPresence = p |
| 860 | } |
| 861 | |
| 862 | // SetRedisHealth attaches the Redis reachability prober (BUG-2727). Nil |
| 863 | // on a deployment with no Redis, in which case /api/v1/health/ready reports no |
no outgoing calls