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

Function EncodeWaveOSCMessageEx

pkg/wshutil/wshutil.go:115–124  ·  view source on GitHub ↗
(oscNum string, msg *RpcMessage)

Source from the content-addressed store, hash-verified

113}
114
115func EncodeWaveOSCMessageEx(oscNum string, msg *RpcMessage) ([]byte, error) {
116 if msg == nil {
117 return nil, fmt.Errorf("nil message")
118 }
119 barr, err := json.Marshal(msg)
120 if err != nil {
121 return nil, fmt.Errorf("error marshalling message to json: %w", err)
122 }
123 return EncodeWaveOSCBytes(oscNum, barr)
124}
125
126var shutdownOnce sync.Once
127

Callers

nothing calls this directly

Calls 1

EncodeWaveOSCBytesFunction · 0.85

Tested by

no test coverage detected