Re:Show HN: Operational transform for realtime collaborative...
by theaustinseven on Friday December 30, 2016 @01:02AM
(#13282849)
This is cool! I've been working on something similar in Go, but I haven't spent much time on it recently. Is this a purely front-end application, or is there a server associated with it?
[ Parent
| on HN ]
Re:Show HN: Operational transform for realtime collaborative...
by c0da on Friday December 30, 2016 @02:29AM
(#13283111)
Thanks! My implementation is currently front-end only.
Here's the code that simulates all the client/server communication: https://github.com/cricklet/blue-ot.js/blob/master/js/ot/orc...
It shouldn't be too hard to take that and put it in an actual client/server architecture. The client needs to have a way to send local operations to the server (this can just be an endpoint on the server) and the server needs a way to broadcast operations to all clients (probably webRTC?).
Re:Show HN: Operational transform for realtime collaborative...
by grizzles on Friday December 30, 2016 @02:10PM
(#13286483)
Hey Kenrick, I agree - WebRTC would be a good choice since it allows out of order packets, that can speed stuff up quite a bit.
Did you see this article? It was posted on HN yesterday. It links to a gh project that might be useful for your project. https://getkey.eu/blog/5862b0cf/webrtc:-the-future-of-web-ga...
Re:Show HN: Operational transform for realtime collaborative...
by akanet on Saturday December 31, 2016 @05:23AM
(#13290478)
I'm going to try to implement this in my app. I use Firebase/Firepad for true p2p OT but it's become cumbersome. Do you have additional thoughts about communication channel implementation?