79603012

Date: 2025-05-02 08:18:37
Score: 1
Natty:
Report link

You can consider using Yjs subdocument to do this, the can load different document without reconnect the websocket. the official y-websocket did not implement subdocument by default. this repo https://github.com/RedDwarfTech/texhub-broadcast/blob/main/src/websocket/conn/socket_io_client_provider.ts implement subsocument. This is the official discuss board issue to talk about how to implement the subdocument:https://discuss.yjs.dev/t/extend-y-websocket-provider-to-support-sub-docs-synchronization-in-one-websocket-connection/1294

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Dolphin