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

Method SetEventBus

internal/server/server.go:1236–1238  ·  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

1234
1235// SetEventBus attaches an event bus for real-time SSE streaming.
1236func (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

Calls

no outgoing calls