Skip to content

Initializing document from the server #155

Answered by BitPhinix
chasefarmer2808 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @chasefarmer2808,

the initial version of the example project actually included a server-side initial state. You can find the code for it here: https://github.com/BitPhinix/slate-yjs-example/blob/9f6076c3b4a8c5f9817d77bfe1343cee2d90e2c3/server/server.ts#L46 (it's basically a modified version of y-websocket)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BitPhinix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants