I am trying the y-codemirror demo on my local machine, and I changed the code to use a WebrtcProvider, basically this is my change,
- const provider = new WebsocketProvider(
- 'wss://demos.yjs.dev',
- 'codemirror-large',
+ const provider = new WebrtcProvider(
+ 'test-doc',
ydoc
)
I open the shared doc in both Chrome and Safari, when I disconnect from Safari and reconnect, Chrome can not get Safari’s change, but Safari can get Chrome’s change, now the change is only flowing from Chrome to Safari. I have to reload the Safari page to make it sync again.
If I disconnect and reconnect from Chrome instead, the change is only flowing from Safari to Chrome.
Is this a bug? I’m using the latest y-webrtc master, commit id d9f2b28b2ab28edfc11a0b0b48f3bc0a5919f8bf