From f9037ca05d742a27c0bec8d5fa52ba9181f15a72 Mon Sep 17 00:00:00 2001 From: zhangzheng Date: Sat, 28 Feb 2026 18:29:30 +0800 Subject: [PATCH] 1111 --- WebApp/src/class/websockethandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebApp/src/class/websockethandler.ts b/WebApp/src/class/websockethandler.ts index f054bda..455e1ea 100644 --- a/WebApp/src/class/websockethandler.ts +++ b/WebApp/src/class/websockethandler.ts @@ -343,7 +343,7 @@ function AddHeartbeat(ws: WebSocket){ if (now - (ws as any).lastActivity > 10000) { console.log('WebSocket connection timeout, closing...'); clearInterval((ws as any).heartbeatTimer); - //ws.close(); + ws.close(); } else { // 发送ping消息 ws.send(JSON.stringify({ type: "ping" }));