You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
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.
That a user connect to the webrtc and insert an image.
Connect with a second user.
I don't know if you'll be able to reproduce it... it seems like something very specific and I haven't really found what's going on... I only know what happens when there are images...
Expected behavior
The synchronization should be correct for the second user
Shouldn't I throw an empty subscription websocket when the webrtc has a password? (not sure about this)
disconnect() should launch an unsubscribe websocket to remove it from topics
Environment Information
Chrome 101.0.4951.64 (Build oficial) (64 bits)
Firefox 100.0 (64-bit)
Node: v16.14.0
ws: 8.6.0
y-protocols: 1.0.5
y-quill: 0.1.5
y-webrtc: 10.2.3
yjs: 13.5.36
greetings and thanks
The text was updated successfully, but these errors were encountered:
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.
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)
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.
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
The text was updated successfully, but these errors were encountered: