Developers MUST use .*
to denote a wildcard subscription. Just having 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 check our official Wildcard Subscribe docs.