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

Method EventUnsubAllCommand

pkg/wshrpc/wshserver/wshserver.go:540–547  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

538}
539
540func (ws *WshServer) EventUnsubAllCommand(ctx context.Context) error {
541 rpcSource := wshutil.GetRpcSourceFromContext(ctx)
542 if rpcSource == "" {
543 return fmt.Errorf("no rpc source set")
544 }
545 wps.Broker.UnsubscribeAll(rpcSource)
546 return nil
547}
548
549func (ws *WshServer) EventReadHistoryCommand(ctx context.Context, data wshrpc.CommandEventReadHistoryData) ([]*wps.WaveEvent, error) {
550 events := wps.Broker.ReadEventHistory(data.Event, data.Scope, data.MaxItems)

Callers

nothing calls this directly

Calls 2

GetRpcSourceFromContextFunction · 0.92
UnsubscribeAllMethod · 0.80

Tested by

no test coverage detected