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

前端 未结 3 648
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 07:51

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

相关标签:
3条回答
  • 2020-12-24 08:24

    Geoff is right, but as I searched for the same solution I just found two working with Javascript

    • depends on jQuery https://github.com/eddflrs/meteor-ddp (recommended)
    • a light standalone solution https://github.com/bmcmahen/ddp-sockjs-client

    hopefully both are working with the specifications for ddp https://github.com/meteor/meteor/blob/master/packages/livedata/DDP.md

    0 讨论(0)
  • 2020-12-24 08:31

    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.

    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.

    0 讨论(0)
  • 2020-12-24 08:36

    They just added a small python command-line tool for talking to a Meteor DDP server.

    0 讨论(0)
提交回复
热议问题