在Meteor.js中进行运营转型? [英] Operational Transformation in Meteor.js?

查看:95
本文介绍了在Meteor.js中进行运营转型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与Etherpad相关的项目,我曾考虑使用Meteor.js(我认为它非常适合此类项目).如果我想使其具有可扩展性,那么运营转型对于我的项目而言非常重要.我目前的知识表明,流星不支持开箱即用的操作转换(如果我在这里错了,请纠正我). 所以基本上我的问题是如何在meteor.js中实现运营转型?

I'm working on a project which is some what related to Etherpad for which I thought of using Meteor.js(which I think is very much suited for this kind of project). Operational transformation is very important for my project if I think of making it scalable. My current knowledge suggest that meteor does't support operational transformation out of box (correct me if I am wrong here). So basically my question is how to implement operational transformation in meteor.js?

我尝试使用此库 google-diff-match-patch ,由 Neil Fraser 进行,但是在应用补丁程序时遇到了问题(尽管它在meteor.js之外有效)很容易).

I tried using this library google-diff-match-patch, by Neil Fraser, but had problems while applying patches(though it worked outside meteor.js quite easily).

有什么建议吗?

推荐答案

看到多个Meteor项目使用OT(即 http://cocodojo.meteor.com/),我决定进行适当的集成.

After seeing several Meteor projects make use of OT (i.e. http://cocodojo.meteor.com/), I decided to go for a proper integration.

我创建了一个智能程序包,用于将ShareJS集成到流星中.请检查一下并添加您的拉取请求: https://github.com/mizzao/meteor-sharejs

I've created a smart package to integrate ShareJS into meteor. Please come check it out and add your pull requests: https://github.com/mizzao/meteor-sharejs

演示应用程序: http://documents.meteor.com

这篇关于在Meteor.js中进行运营转型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆