ws
This commit is contained in:
parent
479b55afc0
commit
844f673b0e
@ -61,7 +61,7 @@ class WebsocketUtil:
|
||||
def send_message_proj_json(self, message: Union[str, int, List, Dict], id: str):
|
||||
# 广播该项目的消息
|
||||
active_connections = read(id=id)
|
||||
print("===================", len(active_connections), active_connections[0])
|
||||
print("===================", type(active_connections), active_connections[0])
|
||||
for connection in active_connections:
|
||||
try:
|
||||
connection.send(json.dumps(message, cls=MyEncoder, indent=4), )
|
||||
|
Loading…
x
Reference in New Issue
Block a user