Closed mehtahardikr closed 3 years ago
Hi! Each pubnub.subscribe
call returns a new subscription. After you create a subscription you cannot change it, so if you want to add a new channel to the subscription you either need to create a separate subscription, or .cancel()
the previous one.
In each subscription you will only receive messages from the channels that were in the original subscription.
Additionally, you shouldn't do channelList.join(',')
. Instead you should pass in your channelList as such
pubnub.subscribe(channels: channelList.toSet(), ...)
.
Edit: Here is a solution that you can evaluate for your use-case if you need to use multiple subscriptions: https://github.com/pubnub/dart/issues/44#issuecomment-825053295
@are : okay fine, let me check like this. thank you.
Trying to subscribe channels in list not working.
if I subscribe one by one then
then it returns messages which are queued for 'test1' channel , seems to be weired issue.