From f72ba4b8583209afc8869f80655dca1f8e68ef98 Mon Sep 17 00:00:00 2001 From: chimchooree Date: Mon, 27 Mar 2023 11:50:11 -0500 Subject: [PATCH] server update --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index e60f38b..d6c8062 100644 --- a/server.py +++ b/server.py @@ -49,7 +49,7 @@ async def check(websocket): if packet["type"] == "user_joined": IDs[websocket] = packet["name"] websockets.broadcast(connected, json.dumps({"type": "server_message", "message": IDs[websocket] + " joined"})) - await websocket.send(json.dumps({ + websockets.broadcast(connected, json.dumps({ # should be await websocket.send so only client sees own action prose "type": "action", "clear_box": False, "actions": ["action_leave", "action_rename"]