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

Function GetMainRpcClient

pkg/wshrpc/wshserver/wshserverutil.go:22–27  ·  view source on GitHub ↗

returns the wavesrv main rpc client singleton

()

Source from the content-addressed store, hash-verified

20
21// returns the wavesrv main rpc client singleton
22func GetMainRpcClient() *wshutil.WshRpc {
23 waveSrvClient_Once.Do(func() {
24 waveSrvClient_Singleton = wshutil.MakeWshRpc(wshrpc.RpcContext{}, &WshServerImpl, "main-client")
25 })
26 return waveSrvClient_Singleton
27}

Callers 3

handleVDomFunction · 0.92
createMainWshClientFunction · 0.92
initTestHarnessFunction · 0.92

Calls 1

MakeWshRpcFunction · 0.92

Tested by

no test coverage detected