Closed Marius-Romanus closed 2 years ago
Hi @Marius-Romanus,
I believe this issue occurs because some WebRTC implementations have a limit on the maximum message-size. So if you send something like images via WebRTC, then the message might not arrive fully on the other side. This is why you get a out-of-bounds
error.
The following PR attempts to fix that. https://github.com/yjs/y-webrtc/pull/25
Maybe you can switch to their implementation and try out if it fixes the issue.
Hello, @dmonad I have been able to verify that with the branch: https://github.com/yjs/y-webrtc/tree/fd6f29b6e692a23c7fe5034cc4eee55af98ea55c, which you indicate, it works and no longer gives that error, but on occasion it has been left in a loop launching a warning that did not contain the type of error it was giving.
However, I don't know if it would be correct to use it in a production environment since it is not kept up to date, a pity that the polyfill was not implemented at the moment. With your experience, do you think it is better at the moment to use websockets for large sizes instead of webrtc? Thank you very much, I hope that at least my test will serve for you to continue on that path :)
The other two errors, I imagine, are totally independent of this. (First empty subscription when webrtc has a password and disconnect doesn't send unsubcribe)
Greetings!
Yeah, it might be better to revert to y-websocket for a serious application. Unfortunately, there are still compatibility issues between browsers when using webrtc-data channels.
Regarding the signaling issue. I think one of my signaling servers is down at the moment. This might be the reason.
Checklist
Describe the bug Hello, when a second user connects to the webrtc in a quill with an image inserted, quill is not updated to what is in the webrtc, it goes blank. It doesn't always do it... although in Firefox I have gotten these two error messages, in case it can help:
It only happens when the second user enters the webrtc room, if both users are already inside, it synchronizes well. I'm in an angular environment and using ngx-quill though I don't think that has anything to do with it.
I don't know very well if it has to do with the base 64 size of the image or something like that... I have detected that when it fails and doesn't update the content it tries to make several subscriptions.
...
On the other hand, I have also seen that when you put a password on the webrtc, it sends a first empty subscription attempt and then with the correct room. I don't know if this has to be like this since I'm new to webrtc.
And finally a third thing I've seen, although I don't think it's related to quill, it seems to do a provider.disconnect(); you are not throwing the websocket (in webrtc) from unsubscribe to the server.
I'm sorry if I don't explain myself very well in English, ask me anything you need, I'll be happy to help, you do a great job.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Environment Information
greetings and thanks