ws
This commit is contained in:
parent
4ef8d20582
commit
41ad806469
@ -60,8 +60,8 @@ class WebsocketUtil:
|
||||
|
||||
def send_message_proj_json(self, message: Union[str, int, List, Dict], id: str):
|
||||
# 广播该项目的消息
|
||||
active_connections_dist = read(id=id)
|
||||
for connection in active_connections_dist[id]:
|
||||
active_connections = read(id=id)
|
||||
for connection in active_connections:
|
||||
try:
|
||||
connection.send(json.dumps(message, cls=MyEncoder, indent=4), )
|
||||
except Exception as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user