ueberdosis / hocuspocus

The CRDT Yjs WebSocket backend for conflict-free real-time collaboration in your app.
https://tiptap.dev/docs/hocuspocus/introduction
MIT License
1.31k stars 126 forks source link

Is it possible for provider to fetch document by default #732

Closed jiawei686 closed 1 year ago

jiawei686 commented 1 year ago
image

Is it possible for provider to fetch document from hocuspocus server by default instead of creating a new ydoc ? Now it sems that we could only get current ydoc by http then connect websocket by provider

janthurau commented 1 year ago

The provider is actually fetching the document from the hocuspocus server, but you need to least create the local instance first. Not sure why you think that it is fetched via HTTP? That's not the case.

Btw, this is not an issue :) Please check out our Discord for questions: https://discord.gg/WtJ49jGshW