()
| 2513 | } |
| 2514 | |
| 2515 | function 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 | |
| 2525 | function clearLogsDisplay() { |
| 2526 | AppState.allLogs = []; |
nothing calls this directly
no test coverage detected