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

Method registerResponseHandler

pkg/wshutil/wshrpc.go:254–258  ·  view source on GitHub ↗
(reqId string, handler *RpcResponseHandler)

Source from the content-addressed store, hash-verified

252}
253
254func (w *WshRpc) registerResponseHandler(reqId string, handler *RpcResponseHandler) {
255 w.Lock.Lock()
256 defer w.Lock.Unlock()
257 w.ResponseHandlerMap[reqId] = handler
258}
259
260func (w *WshRpc) unregisterResponseHandler(reqId string) {
261 w.Lock.Lock()

Callers 1

handleRequestInternalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected