完善websocket关闭连接功能
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ function initWebSocket(server) {
|
||||
|
||||
// 连接关闭
|
||||
ws.on("close", () => {
|
||||
removeConnection(username);
|
||||
removeConnection(username, ws);
|
||||
|
||||
// 通知所有在线用户当前在线用户列表
|
||||
broadcast({
|
||||
|
||||
Reference in New Issue
Block a user