如何从Meteor集合中获取实时增量数据流,以在Webapp之外使用? [英] How do I get a live stream of deltas from Meteor collection, for use outside of a webapp?

查看:59
本文介绍了如何从Meteor集合中获取实时增量数据流,以在Webapp之外使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Meteor集合中实时获取增量数据流,以在Web应用程序之外使用?

How do I get a live stream of deltas from Meteor collection, for use outside of a webapp?

我正在寻找一个初始结果集,以及对该结果集进行的一系列操作,这些操作是按时进行的.

I'm looking for an initial result set, plus a series of operations on that result set, delivered as the happen.

谢谢

克里斯.

推荐答案

流星协议称为DDP.它恰好满足您的要求:发送一条订阅"消息,说出您想要获取的数据,然后返回初始结果集,然后返回创建/更新/删除消息的流.

The Meteor protocol is called DDP. It does exactly what you're asking for: you send a "subscribe" message that says what data you want to get, and then you get back the initial result set and then a stream of create/update/delete messages.

因此,您需要使用DDP客户端来编写其他程序所用的任何语言.由于Meteor太新了,所以这些都不存在.但是已经有很多人写信说要写.如果您有兴趣参与其中,请发送邮件至contact@meteor.com.

So what you need is a DDP client for whatever language the other program is written in. Since Meteor is so new, these don't exist yet. But a lot of people already written in to say that they want to write them. If you're interested in getting involved with that you should send a message to contact@meteor.com.

这篇关于如何从Meteor集合中获取实时增量数据流,以在Webapp之外使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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