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

Method handleEventRecv

pkg/wshutil/wshrpc.go:285–295  ·  view source on GitHub ↗
(req *RpcMessage)

Source from the content-addressed store, hash-verified

283}
284
285func (w *WshRpc) handleEventRecv(req *RpcMessage) {
286 if req.Data == nil {
287 return
288 }
289 var waveEvent wps.WaveEvent
290 err := utilfn.ReUnmarshal(&waveEvent, req.Data)
291 if err != nil {
292 return
293 }
294 w.EventListener.RecvEvent(&waveEvent)
295}
296
297func (w *WshRpc) handleStreamData(req *RpcMessage) {
298 if w.StreamBroker == nil {

Callers 1

handleRequestInternalMethod · 0.95

Calls 2

ReUnmarshalFunction · 0.92
RecvEventMethod · 0.80

Tested by

no test coverage detected