3 ms·
If anyone is keen to hack on OT or OT-related products, a friend of mine has a great Javascript/Coffeescript library called ShareJS that makes building OT-power
by sgentle 15y ago
If anyone is keen to hack on OT or OT-related products, a friend of mine has a great Javascript/Coffeescript library called ShareJS that makes building OT-powered web apps pretty easy.
Demo: http://sharejs.org/hello-ace.html http://sharejs.org/hello-ace.html
Github: https://github.com/josephg/ShareJS https://github.com/josephg/ShareJS
- ilaksh 15y agoI was just googling for socket.io and operational transform a minute ago and that popped up. The slideshow I saw though said it just uses Ace to handle text. Can it do OT on types other than text now? EDIT:.. actually I see the JSON example. The hex thing game, I notice it has a fixed length in that array.. does this sharejs OT library handle cases where a variable size array has concurrent updates, deletes and inserts?
- josephg 15y agoHi! Author of ShareJS here. ShareJS works fine with variable length arrays. Also, ShareJS isn't limited to ace. Textareas work as well. Here's the same document that was linked, editable from a textarea: http://sharejs.org/textarea.html http://sharejs.org/textarea.html