MCPcopy
hub / github.com/wavetermdev/waveterm / SendEventToElectron

Function SendEventToElectron

pkg/eventbus/eventbus.go:49–58  ·  view source on GitHub ↗
(event WSEventType)

Source from the content-addressed store, hash-verified

47}
48
49func SendEventToElectron(event WSEventType) {
50 barr, err := json.Marshal(event)
51 if err != nil {
52 log.Printf("cannot marshal electron message: %v\n", err)
53 return
54 }
55 // send to electron
56 log.Printf("sending event to electron: %q\n", event.EventType)
57 fmt.Fprintf(os.Stderr, "\nWAVESRV-EVENT:%s\n", string(barr))
58}

Callers 2

SendActiveTabUpdateFunction · 0.92
CloseWindowFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected