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

Method SetEventBus

internal/server/server.go:1286–1288  ·  view source on GitHub ↗

SetEventBus attaches an event bus for real-time SSE streaming.

(bus events.EventBus)

Source from the content-addressed store, hash-verified

1284
1285// SetEventBus attaches an event bus for real-time SSE streaming.
1286func (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

Calls

no outgoing calls