MCPcopy
hub / github.com/yaklang/yakit / getClient

Function getClient

app/main/ipc.js:116–127  ·  view source on GitHub ↗
(createNew)

Source from the content-addressed store, hash-verified

114}
115
116function getClient(createNew) {
117 if (!!createNew) {
118 return newClient()
119 }
120
121 if (_client) {
122 return _client
123 }
124
125 _client = newClient()
126 return getClient()
127}
128
129/**
130 * @name 测试远程连接引擎是否成功

Callers 15

asyncEchoFunction · 0.85
asyncSetCurrentProjectFunction · 0.85
asyncGetCurrentProjectExFunction · 0.85
asyncGetProjectsFunction · 0.85
asyncNewProjectFunction · 0.85
asyncUpdateProjectFunction · 0.85
asyncIsProjectNameValidFunction · 0.85
asyncRemoveProjectFunction · 0.85
asyncDeleteProjectFunction · 0.85
asyncGetDefaultProjectExFunction · 0.85

Calls 1

newClientFunction · 0.85

Tested by

no test coverage detected