flowbetween
flowbetween copied to clipboard
Collaborative editing in browser?
I'm wondering if it would be feasible to implement collaborative editing by multiple users connecting to a server through a browser?
I know this isn't the goal of this project, but it seems like it could be the basis of an awesome whiteboard app.
This is almost already working, I think. You can open the same file in two windows already and see edits show up by scrolling around on the timeline to force it to update.
What's currently missing to make the edits show up right away I think is just the way sessions start up - it re-opens the database file instead of using the existing one. If it re-used the existing database for a new session, it would relay edits to all connected users.
For a whiteboard app you might want to build a different UI specifically for that task: the flo_ui
crate is an incomplete UI crate, but combined with the flo_http_ui
crate it could definitely be used as the basis for such an application. It would also be possible to make a more conventional HTTP application by combining the canvas.js
file and the encoded output of the flo_canvas
crate (the main UI sends this via a websocket).