Stream Controller
Subscribing to multiple channels simultaneously is easy and flexible using the various features of PubNub’s Stream Controller:
- Multiplexing: subscribe to an array or list of channels (e.g. 'a,b,c,d'); this approach is recommended when subscribing to a smaller number of channels (20-30)
- Channel Groups: create and register a group of channels and subscribe to that group; can support up to 20,000 channels on a single subscription
- Wildcard Subscribe: subscribe to all channels that use a hierarchical naming scheme, such as ‘a.*’
For further learning, please see:
- Multiplexing section of the knowledge base
- Stream Controller documentation