Developers MUST use .* to denote a wildcard subscription. Implicitly, a * at the end of channel names will NOT get translated to .* and will result in a subscribe error. Here is an example of a proper wildcard subscribe which results in subscribing to all channels of that are prefixed with 'stocks.', like 'stocks.tech.', 'stocks.tech.aapl', 'stocks.healthcare.', etc.


pubnub.subscribe({
 channels: ['stocks.*'] });


For more details on proper code syntax, consult the official docs for the SDK you are using.