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

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

问题描述

如何从 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.

谢谢,

克里斯.

推荐答案

Meteor 协议称为 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 集合中获取实时增量流,以便在 Web 应用程序之外使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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