-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Silencing "Unable to compute message" #18
Comments
Mi Max, What kind of overhead are you talking about? Cursor positions should be propagated using the awareness protocol. https://github.com/yjs/y-protocols#awarenessprotocolawareness-class In most cases, the Awareness instance should work better than implementing your own protocol. y-webrtc doesn't guarantee a totally connected network so you need some CRDT to propagate data. Otherwise, you will likely run into sync issues. If you are interested we can discuss an extension to the y-webrtc protocol that handles custom messages. Some kind of "custom" message format. |
This was exactly what I needed, thanks so much! Btw, for streams, I only have access to the However the |
Hi @maxkrieger , you could wait for the Before we can create a room, we need to compute the encryption key which is an asynchronous background call. The proper way to wait for the room would be |
Thanks so much! |
In my app I'm using the simple-peer method
peer.send(mymessage)
to get around some of the overhead(?) involved in the yjs CRDT: i.e., to broadcast cursor position. However, because of the switch statement in this library, unknown types of messages throw an error:y-webrtc/src/y-webrtc.js
Line 117 in d9f2b28
Could you add a way to silence this error or otherwise allow custom messages to be handled?
The text was updated successfully, but these errors were encountered: