MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetSessionPresence

Method SetSessionPresence

internal/server/server.go:858–860  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

856// listening?", and says so with a 503 rather than an empty list (see
857// handleListSessions).
858func (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

Calls

no outgoing calls