websocket

This commit is contained in:
wudong 2022-11-25 17:39:24 +08:00
parent b6393491e3
commit 4d72943208

View File

@ -23,6 +23,7 @@ class WebsocketUtil:
# 等待连接
msg = ws.receive()
# 存储ws连接对象
print("存储ws连接对象")
self.active_connections.append(ws)
if id in self.active_connections_dist:
self.active_connections_dist[id].append(ws)