MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / connect

Function connect

frontend/src/store/modules/process.ts:181–192  ·  view source on GitHub ↗
(currentNode: string)

Source from the content-addressed store, hash-verified

179 };
180
181 const connect = (currentNode: string) => {
182 if (disconnectTimer) {
183 clearTimeout(disconnectTimer);
184 disconnectTimer = null;
185 }
186
187 connectionRefCount++;
188
189 if (!websocket && !isConnecting.value) {
190 initWebSocket(currentNode);
191 }
192 };
193
194 const disconnect = () => {
195 connectionRefCount = Math.max(0, connectionRefCount - 1);

Callers 1

runSSHSessionMethod · 0.85

Calls 1

initWebSocketFunction · 0.85

Tested by

no test coverage detected