MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / broadcast

Method broadcast

pkg/wconfig/filewatcher.go:113–119  ·  view source on GitHub ↗
(message WatcherUpdate)

Source from the content-addressed store, hash-verified

111}
112
113func (w *Watcher) broadcast(message WatcherUpdate) {
114 wps.Broker.Publish(wps.WaveEvent{
115 Event: wps.Event_Config,
116 Data: message,
117 })
118 w.notifyHandlers(message.FullConfig)
119}
120
121func (w *Watcher) RegisterUpdateHandler(handler ConfigUpdateHandler) {
122 w.mutex.Lock()

Callers 2

sendInitialValuesMethod · 0.95

Calls 2

notifyHandlersMethod · 0.95
PublishMethod · 0.80

Tested by

no test coverage detected