SetEventBus attaches an event bus for real-time SSE streaming.
(bus events.EventBus)
| 1234 | |
| 1235 | // SetEventBus attaches an event bus for real-time SSE streaming. |
| 1236 | func (s *Server) SetEventBus(bus events.EventBus) { |
| 1237 | s.events = bus |
| 1238 | } |
| 1239 | |
| 1240 | // SetWatchEventsBus attaches the watch/nudge notification bus consumed by |
| 1241 | // GET /api/v1/events/stream (TASK-2533). Nil-checked by every producer and |
no outgoing calls