fix imported updates also broadcast to other clients

This commit is contained in:
hjlarry
2025-08-05 10:21:22 +08:00
parent 9455476705
commit 2395d4be26
3 changed files with 15 additions and 15 deletions

View File

@ -140,10 +140,10 @@ def handle_collaboration_event(sid, data):
return {"msg": "event_broadcasted"}
@sio.on("graph_update")
def handle_graph_update(sid, data):
@sio.on("graph_event")
def handle_graph_event(sid, data):
"""
Handle graph updates - simple broadcast relay.
Handle graph events - simple broadcast relay.
"""
mapping = redis_client.get(f"ws_sid_map:{sid}")