Skip to content
Piotr Kowalski edited this page Feb 13, 2016 · 8 revisions

postal.channel

description: creates a ChannelDefinition object.

returns: a ChannelDefinition instance

postal.channel();

  • Not providing any arguments returns the DEFAULT_CHANNEL, "/"

Example Usage:

var defChannel = postal.channel();

postal.channel( channelName );

  • channelName - a string value representing the name of the channel.

Example Usage:

var channel = postal.channel( "myVeryOwnChannel" );