SetEventBus attaches an event bus for real-time SSE streaming.
(bus events.EventBus)
| 1284 | |
| 1285 | // SetEventBus attaches an event bus for real-time SSE streaming. |
| 1286 | func (s *Server) SetEventBus(bus events.EventBus) { |
| 1287 | s.events = bus |
| 1288 | } |
| 1289 | |
| 1290 | // SetWatchEventsBus attaches the watch/nudge notification bus consumed by |
| 1291 | // GET /api/v1/events/stream (TASK-2533). Nil-checked by every producer and |
no outgoing calls