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

Method SendMessage

pkg/wshutil/wshrpc.go:666–679  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

664}
665
666func (handler *RpcResponseHandler) SendMessage(msg string) {
667 rpcMsg := &RpcMessage{
668 Command: wshrpc.Command_Message,
669 Data: wshrpc.CommandMessageData{
670 Message: msg,
671 },
672 Route: handler.source, // send back to source
673 }
674 msgBytes, _ := json.Marshal(rpcMsg) // will never fail
675 select {
676 case handler.w.OutputCh <- msgBytes:
677 case <-handler.ctx.Done():
678 }
679}
680
681func (handler *RpcResponseHandler) SendResponse(data any, done bool) error {
682 defer func() {

Callers 1

serverImplAdapterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected