WS game-state URI

This commit is contained in:
Eden Kirin
2023-03-25 16:14:05 +01:00
parent 245dc75211
commit 8bc8a37edd
3 changed files with 9 additions and 15 deletions

View File

@ -22,7 +22,7 @@ async def ws_handler(websocket: WebSocketServerProtocol):
try:
async for message in websocket:
logging.debug(f"Received message: {message}")
logging.debug(f"Received message on {websocket.path}: {message}")
broadcast_clients = [client for client in connected_clients if client.id != websocket.id]
if broadcast_clients:
logging.debug(f"Broadcast message to clients: {broadcast_clients}")