Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmeasday/nested-subscriptions
Meteor package to nest subscriptions
https://github.com/tmeasday/nested-subscriptions
Last synced: about 1 month ago
JSON representation
Meteor package to nest subscriptions
- Host: GitHub
- URL: https://github.com/tmeasday/nested-subscriptions
- Owner: tmeasday
- Created: 2015-04-22T07:38:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-22T07:47:07.000Z (almost 10 years ago)
- Last Synced: 2024-10-25T18:58:37.689Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nested-subscriptions
Allows nesting of subscriptions to easily overlap them.
## Usage
```js
NestedPublish("name", function () {
this.publish(function() {
// this is like a "new" subscription that can safely publish
// the same documents as the outer subscription.
});
this.ready();
});
```## Goals
You can nest as many times as you like. The properties of a nested sub are:
1. It is a separate "context" so it can publish the same document more than once.
2. An outer subscription won't be ready until all it's child subscriptions are ready.
3. When an outer subscription is stopped, all of it's child subscriptions will stop.