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

Function disconnect

frontend/src/store/modules/process.ts:194–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 };
193
194 const disconnect = () => {
195 connectionRefCount = Math.max(0, connectionRefCount - 1);
196
197 if (connectionRefCount === 0) {
198 disconnectTimer = setTimeout(() => {
199 if (connectionRefCount === 0) {
200 closeWebSocket();
201 }
202 }, 500);
203 }
204 };
205
206 const sendPsMessage = () => {
207 if (!isWsOpen()) {

Callers

nothing calls this directly

Calls 1

closeWebSocketFunction · 0.85

Tested by

no test coverage detected