subscribe
subscribe
- subscribe(
channels):Promise<void>
List of channels for which you want to receive messages.
Note that the subscribe function is idempotent, and calling it again with a different set of channels will not unsubscribe you from the old ones. To unsubscribe, use unsubscribe.
Parameters
Returns
Promise<void>