{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package eventbus\n\n## Constants\n\n```go\nconst (\n\tWSEvent_ElectronCloseWindow     = \"electron:closewindow\"\n\tWSEvent_ElectronUpdateActiveTab = \"electron:updateactivetab\"\n\tWSEvent_Rpc                     = \"rpc\"\n)\n```\n\n## Functions\n\n```go\nfunc RegisterWSChannel(connId string, routeId string, ch chan any)\n```\n\n```go\nfunc SendEventToElectron(event WSEventType)\n```\n\n```go\nfunc UnregisterWSChannel(connId string)\n```\n\n## Types\n\n```go\ntype WSEventType struct {\n\tEventType string `json:\"eventtype\"`\n\tORef      string `json:\"oref,omitempty\"`\n\tData      any    `json:\"data\"`\n}\n```\n\n```go\ntype WindowWatchData struct {\n\tWindowWSCh chan any\n\tRouteId    string\n}\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/eventbus","name":"eventbus","synopsis":"","isRedistributable":true}
