(msg []byte, ingressLinkId baseds.LinkId, debugStr string)
| 44 | } |
| 45 | |
| 46 | func (p *WshRpcProxy) SendRpcMessage(msg []byte, ingressLinkId baseds.LinkId, debugStr string) bool { |
| 47 | defer func() { |
| 48 | panicCtx := "WshRpcProxy.SendRpcMessage" |
| 49 | if debugStr != "" { |
| 50 | panicCtx = fmt.Sprintf("%s:%s", panicCtx, debugStr) |
| 51 | } |
| 52 | panichandler.PanicHandler(panicCtx, recover()) |
| 53 | }() |
| 54 | select { |
| 55 | case p.ToRemoteCh <- msg: |
| 56 | return true |
| 57 | default: |
| 58 | return false |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func (p *WshRpcProxy) RecvRpcMessage() ([]byte, bool) { |
| 63 | inputVal, more := <-p.FromRemoteCh |
nothing calls this directly
no test coverage detected