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

Function closeWebSocket

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

Source from the content-addressed store, hash-verified

166 };
167
168 const closeWebSocket = () => {
169 initWebSocketToken++;
170 stopPolling();
171
172 if (websocket) {
173 websocket.close();
174 websocket = null;
175 }
176
177 isConnected.value = false;
178 isConnecting.value = false;
179 };
180
181 const connect = (currentNode: string) => {
182 if (disconnectTimer) {

Callers 1

disconnectFunction · 0.85

Calls 2

stopPollingFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected