Skip to content
Snippets Groups Projects
Commit 8d5702ee authored by chris's avatar chris
Browse files

set Ydoc to context

parent 1cce319a
No related branches found
No related tags found
No related merge requests found
Pipeline #59932 passed with stages
in 3 minutes and 28 seconds
...@@ -23,8 +23,8 @@ class YjsService extends Service { ...@@ -23,8 +23,8 @@ class YjsService extends Service {
if (!configProvider || !configYdoc) { if (!configProvider || !configYdoc) {
ydoc = new Y.Doc(); ydoc = new Y.Doc();
provider = new WebsocketProvider(connectionUrl, docIdentifier, ydoc); provider = new WebsocketProvider(connectionUrl, docIdentifier, ydoc);
this.app.context.setOption({ currentYdoc: ydoc });
} }
this.app.context.setOption({ currentYdoc: ydoc });
provider.on('sync', args => { provider.on('sync', args => {
console.log({ sync: args }); console.log({ sync: args });
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment