ws
This commit is contained in:
parent
dd74564f2e
commit
384168f238
@ -60,7 +60,7 @@ class WebsocketUtil:
|
||||
|
||||
def send_message_proj_json(self, message: Union[str, int, List, Dict], id: str):
|
||||
# 广播该项目的消息
|
||||
active_connections_dist = read(id="{id}.pkl")
|
||||
active_connections_dist = read(id=id)
|
||||
for connection in active_connections_dist[id]:
|
||||
try:
|
||||
connection.send(json.dumps(message, cls=MyEncoder, indent=4), )
|
||||
|
Loading…
x
Reference in New Issue
Block a user