mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 13:13:11 +07:00
colaborative tích hợp redis để đồng bộ toàn bộ annotation
This commit is contained in:
@@ -161,7 +161,7 @@ async def pdf_collaboration(websocket: WebSocket, pdf_id: int):
|
||||
continue
|
||||
|
||||
# Inject sender identity and forward to all other clients
|
||||
if msg_type in {"object_add", "object_remove", "clear", "cursor"}:
|
||||
if msg_type in {"object_add", "object_remove", "clear", "cursor", "color_sync"}:
|
||||
msg.update(user_info)
|
||||
await room.broadcast(msg, exclude=websocket)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user