File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ const subscriptionSet2 = pubnub.subscriptionSet({
234
234
subscriptionOptions : { receivePresenceEvents : true }
235
235
} ) ;
236
236
237
- // create a new subscription set from 2 sets
238
- const subscriptionSet3 = subscriptionSet1 . addSubscriptionSet ( subscriptionSet2 ) ;
237
+ // add a subscription set to another subscription set
238
+ subscriptionSet1 . addSubscriptionSet ( subscriptionSet2 ) ;
239
239
240
- // you can also remove sets
241
- const subscriptionSetWithChannelsOnly = subscriptionSet3 . removeSubscriptionSet ( subscriptionSet2 ) ;
240
+ // remove a subscription set from another subscription set
241
+ subscriptionSet1 . removeSubscriptionSet ( subscriptionSet2 ) ;
242
242
// snippet.end
243
243
}
Original file line number Diff line number Diff line change @@ -4767,7 +4767,7 @@ declare namespace PubNub {
4767
4767
*
4768
4768
* @param subscriptionSet - Other entities' subscription set, which should be joined.
4769
4769
*/
4770
- addSubscriptionSet ( subscriptionSet : SubscriptionSet ) : SubscriptionSet ;
4770
+ addSubscriptionSet ( subscriptionSet : SubscriptionSet ) : void ;
4771
4771
/**
4772
4772
* Subtract another {@link SubscriptionSet} object.
4773
4773
*
You can’t perform that action at this time.
0 commit comments