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

Method SendRpcRequest

pkg/wshutil/wshrpc.go:531–543  ·  view source on GitHub ↗

single response

(command string, data any, opts *wshrpc.RpcOpts)

Source from the content-addressed store, hash-verified

529
530// single response
531func (w *WshRpc) SendRpcRequest(command string, data any, opts *wshrpc.RpcOpts) (any, error) {
532 var optsCopy wshrpc.RpcOpts
533 if opts != nil {
534 optsCopy = *opts
535 }
536 optsCopy.NoResponse = false
537 handler, err := w.SendComplexRequest(command, data, &optsCopy)
538 if err != nil {
539 return nil, err
540 }
541 defer handler.finalize()
542 return handler.NextResponse()
543}
544
545type RpcRequestHandler struct {
546 w *WshRpc

Callers 3

sendRpcRequestCallHelperFunction · 0.80

Calls 3

SendComplexRequestMethod · 0.95
finalizeMethod · 0.80
NextResponseMethod · 0.80

Tested by

no test coverage detected