-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync issues Safari ⇔ Chrome #19
Comments
A good first start would be to reproduce the issue and check the logs. This issue might also get fixed by simply updating simple-peer. |
Just going through this issue, it seems Safari might have issues with their Webrtc implementations. Will try a bunch of safari version as soon as possible. |
hey, have there been any news on this? |
I was having a similar issue. I replaced the y-webrtc implementation with a stub based on @disarticulate's fork (see also #23) and was able to debug more easily. One of the things I was seeing was:
This was happening fairly consistently when a Safari based client would attempt to join a room with Chrome-based clients. I looked around for connected issues:
And these helped. Though I haven't fully solved it, I'll keep some notes here: something about the order/state between the two browsers is inconsistent. Chrome <-> Chrome is working well Safari <-> Safari is working well. I tried setting I'll note that I am dealing with very small documents - chunking was not the problem. I tried adding two additional checks for
And
Which in This fixed almost everything. I also have a heavily offline app that refetches on focus and this really made it feel solid. The only thing this isn't solving for me is when the browser is offline (not connected to a network provider, navigator.onLine is false... faking it in the Network panel is not enough). In that case the browsers go back to not being able to talk to each other. I see more invalid message errors so an additional check might be needed. Some conclusions: sending a message when not connected properly crashes the Peer. It goes away entirely and you have to refresh to fix it. But you have to do this to all of the peers and build it up again. If you have an application that refreshes on focus (especially with HMR) this gets very difficult to debug. I'm interested to know if the |
I'd prefer WebRTC over websocket here (especially as the WS implementation isn't encrypted; however I've run into issues around cross browser collaboration - namely: yjs/y-webrtc#56 yjs/y-webrtc#53 yjs/y-webrtc#19 For now having websocket allows iterating on the editor and the UX until I can look at those issues more in depth.
I'd prefer WebRTC over websocket here (especially as the WS implementation isn't encrypted; however I've run into issues around cross browser collaboration - namely: yjs/y-webrtc#56 yjs/y-webrtc#53 yjs/y-webrtc#19 For now having websocket allows iterating on the editor and the UX until I can look at those issues more in depth.
Hey, any progress in this issue ? |
This is a great issue for people who wish to contribute #helpwanted
Describe the bug
Chrome and Safari don't sync
To Reproduce
See issue description: https://discuss.yjs.dev/t/problem-with-webrtcprovider-connect-after-disconnect/278
Expected behavior
Safari keeps up with Chrome
Environment Information
Additional context
This is probably an issue internal to simple-peer - the webrtc module that is used in y-webrtc.
The text was updated successfully, but these errors were encountered: