-
-
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
Problem with firefox and y-webrtc #56
Comments
I am experiencing similar behaviour, firefox is not able to sync and if you turn on the y-webrtc logs, you'd see that it just log infinitely |
I don't have a fix for this but I think that the source of the error is that Firefox WebRTC peers don't deliver ArrayBuffer data by default. They deliver blobs. Thus
|
@jeffrafter where is this |
@ikezedev ah, sorry I was referencing the buffered fork from @disarticulate. In the default y-webrtc the starting point is Line 233 in 0cb5412
|
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.
Describe the bug
I am currently building a collab whiteboard using SyncedStore (wrapper for yjs) and Sveltekit. So far everything works normally in Chrome. I use the y-webrtc provider for the SyncedStore and the connection is established successfully. However, if I use Firefox initially, no connection to the room is established. If I use a Chrome in parallel (Firefox next door still open in the non-synced tab) and establish the connection, Firefox also establishes the connection in parallel and synchronizes the document. I have attached a video below, which shows the exact procedure.
Expected behavior
Firefox connects to the y-webrtc provider just like Chrome when you open the page and synchronizes the document.
Environment Information
Additional context
webrtc_firefox_bug.mp4
The text was updated successfully, but these errors were encountered: