WS DTO assign rework

This commit is contained in:
Eden Kirin
2023-03-25 15:27:15 +01:00
parent 9aabcf61f4
commit 0f0fe68890
11 changed files with 79 additions and 30 deletions

View File

@ -22,8 +22,8 @@ async def ws_handler(websocket: WebSocketServerProtocol):
try:
async for message in websocket:
print(">>>>>>>>>>", message)
broadcast(connected_clients, message)
# await websocket.send(f"Are you talking to me? {message}")
finally:
connected_clients.remove(websocket)
logging.info(f"Remove client: {websocket}")