Meteor.js 中的操作转换? [英] Operational Transformation in Meteor.js?

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

问题描述

我正在做一个与 Etherpad 相关的项目,我想为此使用 Meteor.js(我认为它非常适合此类项目).如果我想使其具有可扩展性,那么运营转型对我的项目非常重要.我目前的知识表明,meteor 不支持开箱即用的操作转换(如果我在这里错了,请纠正我).所以基本上我的问题是如何在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, by 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 集成到meteor 中.请过来查看并添加您的拉取请求: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天全站免登陆