MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / disconnectWebSocket

Function disconnectWebSocket

front/common.js:2515–2523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2513}
2514
2515function disconnectWebSocket() {
2516 if (AppState.logWebSocket) {
2517 AppState.logWebSocket.close();
2518 AppState.logWebSocket = null;
2519 document.getElementById('connectionStatusText').textContent = '未连接';
2520 document.getElementById('logConnectionStatus').className = 'status info';
2521 showStatus('日志流连接已断开', 'info');
2522 }
2523}
2524
2525function clearLogsDisplay() {
2526 AppState.allLogs = [];

Callers

nothing calls this directly

Calls 2

showStatusFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected