-
Notifications
You must be signed in to change notification settings - Fork 400
refactor: avoid re subscribe for already subscribed entities #486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ribe request contain existing channels or groups
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
src/event-engine/index.ts
Outdated
| affectedChannels: Array.from(new Set(this.channels.filter((c) => !c.endsWith('-pnpres')))), | ||
| affectedChannelGroups: Array.from(new Set(this.groups.filter((g) => !g.endsWith('-pnpres')))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohitpubnub is there a reason to filter out presence channels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think filter is not needed. I tested it now, we do not filter out presence channels from status event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updating.
…d status event in re-subscribe scenario
parfeon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
@pubnub-release-bot release |
|
🚀 Release successfully completed 🚀 |
refactor(subscribe): prevent resubscribing to already subscribed entities.
Prevent resubscribe to previously subscribed entities.