This API subscribes to a channel. Once the channel object is obtained, it can be used to add message listeners/callbacks. Subscription process is not instantaneous, which means an added listener may not receive messages published at the same time when it is added. In order to make sure that the subscriber is ready to receive messages from the channel, it is recommended to check the subscription status.
var channel = Backendless.Messaging.subscribe( channelName );
- channelName - name of the channel to subscribe to.
Channel object, must is used to add messaging listeners/callbacks.