From fa7e908a0869f79da95c6973c6e3d8eb3b137149 Mon Sep 17 00:00:00 2001 From: Seven <1530011482@qq.com> Date: Tue, 29 Sep 2026 14:13:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84websocket=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DESIGN.md | 2 +- websocket/connectionManager.js | 8 ++++++-- websocket/index.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 092d05a..21f2e08 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -190,7 +190,7 @@ WebSocket 挂载在 HTTP Server 上,客户端连接地址的形式为 `ws:// { - removeConnection(username); + removeConnection(username, ws); // 通知所有在线用户当前在线用户列表 broadcast({