Skip to content

Commit

Permalink
fix channles and groups initialisation in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Feb 5, 2024
1 parent 6d95a3a commit 2f3147f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/SubscriptionSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class SubscriptionSet implements SubscribeCapable {
eventEmitter: any;
pubnub: any;
}) {
this.channelNames = [...this.channelNames, ...channels];
this.groupNames = [...this.groupNames, ...channelGroups];
this.channelNames = channels;
this.groupNames = channelGroups;
this.options = subscriptionOptions;
this.eventEmitter = eventEmitter;
this.pubnub = pubnub;
Expand Down

0 comments on commit 2f3147f

Please sign in to comment.