Skip to content

postal.subscriptions

ifandelse edited this page May 10, 2014 · 2 revisions

Used to store existing subscriptions. Properties on postal.subscriptions represent different channels. Each channel will have a property per topic binding, and the value of that property will be an array of SubscriptionDefinition instances that subscribed with that topic binding, etc.

For example, subscribing on the "ui" channel, with a topic binding of "some.#.topic" will result in a postal.subscription object similar to this:

{
	ui : {
		"some.#.topic" : [
			// SubscriptionDefinition instance, etc.
		]
	}
}