In the examples/demo we can see rust code to become aware of changes (of the single doc the server maintains). However we are missing to see an example how to use the code using a rust client. Say we run a warp signaling server (ws, or webrtc) and have clients using WebRrtcProvider from JS y-webrtc, but ALSO a client - written in rust - that connects to a remote document (given a room name) and syncs automatically with the remote documents
A bit like the rust version of the follwing JS
const doc = new Y.Doc()
const provider = new WebrtcProvider('sample', doc, { signaling: ['ws://localhost:8000/signaling'] })
// now changes to doc from events etc .. and propagate them
In other words: How a rust client would look like?
In the examples/demo we can see rust code to become aware of changes (of the single doc the server maintains). However we are missing to see an example how to use the code using a rust client. Say we run a warp signaling server (ws, or webrtc) and have clients using WebRrtcProvider from JS y-webrtc, but ALSO a client - written in rust - that connects to a remote document (given a room name) and syncs automatically with the remote documents
A bit like the rust version of the follwing JS
In other words: How a rust client would look like?