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

Method EventUnsubCommand

pkg/wshrpc/wshserver/wshserver.go:531–538  ·  view source on GitHub ↗
(ctx context.Context, data string)

Source from the content-addressed store, hash-verified

529}
530
531func (ws *WshServer) EventUnsubCommand(ctx context.Context, data string) error {
532 rpcSource := wshutil.GetRpcSourceFromContext(ctx)
533 if rpcSource == "" {
534 return fmt.Errorf("no rpc source set")
535 }
536 wps.Broker.Unsubscribe(rpcSource, data)
537 return nil
538}
539
540func (ws *WshServer) EventUnsubAllCommand(ctx context.Context) error {
541 rpcSource := wshutil.GetRpcSourceFromContext(ctx)

Callers

nothing calls this directly

Calls 2

GetRpcSourceFromContextFunction · 0.92
UnsubscribeMethod · 0.80

Tested by

no test coverage detected