subscriptionSetOf
Create a SubscriptionSet from the given subscriptions.
Return
a SubscriptionSet containing all subscriptions
Parameters
the subscriptions that will be added to the returned SubscriptionSet
Create a SubscriptionSet containing Subscription objects for the given sets of channels and channelGroups.
Please note that the subscriptions are not active until you call SubscriptionSet.subscribe.
This is a convenience method, and it is equal to calling PubNub.channel followed by Channel.subscription for each channel, then creating a subscriptionSetOf using the returned Subscription objects (and similarly for channel groups).
Return
a SubscriptionSet containing subscriptions for the given channels and channelGroups
Parameters
the channels to create subscriptions for
the channel groups to create subscriptions for
the SubscriptionOptions to pass for each subscription. Refer to supported options in Channel and ChannelGroup documentation.