When you subscribe to a channel, the client starts to receive all messages sent to it. You can subscribe to hundreds of channels with a single call. There are many ways of subscribing so make sure you choose the optimal one for your use case. To act on the received data, you must implement an event listener.

For more information, refer to Channel Subscription.