server update

This commit is contained in:
chimchooree
2023-03-27 11:50:11 -05:00
parent 9f52b2840f
commit f72ba4b858
+1 -1
View File
@@ -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"]