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"]