-
Notifications
You must be signed in to change notification settings - Fork 193
ChannelDefinition
The ChannelDefinition
constructor function creates an instance of a channel definition, providing a simple wrapper around subscribing to and publishing messages on a given channel. The built-in ChannelDefinition
is stored under postal.ChannelDefinition
. You create a new instance of a ChannelDefinition
by calling the postal.channel
method.
Be sure to read What are Channels? for more background information.
Member | Description |
---|---|
channel |
The channel name (string) |
subscribe |
SubscriptionDefinition instance. |
publish |
|