Hi everyone,
I’m currently trying to run two instances of this demo (but changed the provider to webrtc) on my local (using two different port). When one instance (user1) got disconnected and then got reconnected again, at first both content from user1 and user will get synced again.
But when user1 tries to add new content, user2 will not receive the update from user1 anymore, but update user2 will still be received by user1 (the updates will become one-direction only).
I’ve created a one-minute video screencast here in case my explanation is not clear enough.
But this issue didn’t occur when I tried this by using websocket provider. are there some extra configuration needed to make sure y-webrtc can handle this scenario? or is this a bug on y-webrtc? please let me know if I’m missing something or if you need more information.
Note: this is the only change I’ve made on the code:
// const provider = new WebsocketProvider(‘wss://demos.yjs.dev’, ‘prosemirror-demo’, ydoc) // commented this
const provider = new WebrtcProvider(‘demo-ywebrtc’, ydoc);
Regards,
Abda