-
Notifications
You must be signed in to change notification settings - Fork 472
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
Real-time collaborative textarea? #167
Comments
After looking into it a bit more it seems like I should use ShareJS with Hoodie: http://sharejs.org/ |
On 11 Nov 2013, at 06:22 , gautamadude [email protected] wrote:
Yeah, good call. You could try and take out the 2 second delay that Hoodie adds by default for syncing to get things more fluently, but I’d say using share.js for the realtime editing and then snapshotting the textarea to |
I'll remove the 2s timeout, it was an app-specific thing, that should help. But besides the timeout, hoodie does not allow for partial updates that'd allow mulitple users to add the same text at the same time. Each update is a replace of the current object, if multiple people work on it simultaneously, it will end up with lots of conflicts and data loss. I don't know if you can come up with a better data model for it, e.g. create new objects for each change to the text and then have logic in the browser that puts it together. But hoodie doesn't do that by default |
@gr2m I don’ t think the realtime collar part is a good fit for hoodie and that share.js or something like it is better and Hoodie can be used to store snapshots and backups. |
Is it possible to do something similar to Google Docs type collaboration of text in hoodie? A kind of real-time collaborative textarea.
I tried something like this:
and opened up two browser windows and started typing but it wasn't really responsive enough to be useful, even on localhost.
Is it possible if I approach it differently?
The text was updated successfully, but these errors were encountered: