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

Method getUpstreamClient

pkg/wshutil/wshrouter.go:819–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

817}
818
819func (router *WshRouter) getUpstreamClient() (baseds.LinkId, AbstractRpcClient) {
820 router.lock.Lock()
821 defer router.lock.Unlock()
822 if router.upstreamLinkId == baseds.NoLinkId {
823 return baseds.NoLinkId, nil
824 }
825 lm := router.linkMap[router.upstreamLinkId]
826 if lm == nil {
827 return baseds.NoLinkId, nil
828 }
829 return router.upstreamLinkId, lm.client
830}
831
832func (router *WshRouter) publishRouteToBroker(routeId string) {
833 defer func() {

Callers 3

sendRoutedMessageMethod · 0.95
queueUpstreamMessageMethod · 0.95
runUpstreamBufferLoopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected