-
Notifications
You must be signed in to change notification settings - Fork 10
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
Multi-peer broadcasting failing with BroadcastGroup example #19
Comments
pkpbynum
changed the title
Looking for working example of Rust-based WS Yjs server?
Multi-peer broadcasting failing with BroadcastGroup example
Jun 27, 2024
Thanks @pkpbynum I'll take a look at it. |
This diff fixes it for me, but looks like I don't have permissions to push to a branch. Also seems like this would also be a bug in y-sync, since it also has the BroadcastGroup?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, I have a setup running this exact example from the README with 2 clients using the WebsocketProvider from y-websocket, but no updates are broadcast across peers. After some digging, I discovered that all updates are marked as pending, and do not invoke this document observe_update_v1 callback. Then I discovered that the Yjs protocol is actually implemented by
WarpConn
and the callback fires when using it, but this PR suggests that the WarpConn is no longer necessary.To my eyes it seems like the BroadcastGroup should be firing SyncStep1 in the
subscribe
methods in order to finalize the connection. I think another issue is that there are many duplicate dependencies across yrs, y-sync, and yrs-warp (e.g. BroadcastGroup), and it's difficult to tell which I should be using.Is it possible to get a working example which actually broadcasts both awareness and document updates across multiple peers using this library? Apologies if I'm missing something, or if this library is not actually ready for use.
code is here (with imports)
The text was updated successfully, but these errors were encountered: