Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

refactor: avoid re subscribe for already subscribed entities#486

Merged
mohitpubnub merged 4 commits intomasterpubnub/javascript:masterfrom
CLEN-3106pubnub/javascript:CLEN-3106Copy head branch name to clipboard
Dec 4, 2025
Merged

refactor: avoid re subscribe for already subscribed entities#486
mohitpubnub merged 4 commits intomasterpubnub/javascript:masterfrom
CLEN-3106pubnub/javascript:CLEN-3106Copy head branch name to clipboard

Conversation

@mohitpubnub
Copy link
Contributor

@mohitpubnub mohitpubnub commented Nov 28, 2025

refactor(subscribe): prevent resubscribing to already subscribed entities.

Prevent resubscribe to previously subscribed entities.

Mohit Tejani added 2 commits November 28, 2025 11:09
@mohitpubnub mohitpubnub requested a review from parfeon as a code owner November 28, 2025 05:55
@pubnub-ops-terraform
Copy link

pubnub-ops-terraform commented Nov 28, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mohitpubnub mohitpubnub self-assigned this Nov 28, 2025
@mohitpubnub mohitpubnub added the type: refactor This PR contains refactored existing features. label Nov 28, 2025
Comment on lines +131 to +132
affectedChannels: Array.from(new Set(this.channels.filter((c) => !c.endsWith('-pnpres')))),
affectedChannelGroups: Array.from(new Set(this.groups.filter((g) => !g.endsWith('-pnpres')))),
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating.

Copy link
Contributor

@parfeon parfeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mohitpubnub
Copy link
Contributor Author

@pubnub-release-bot release

@mohitpubnub mohitpubnub merged commit 9032b02 into master Dec 4, 2025
11 of 13 checks passed
@mohitpubnub mohitpubnub deleted the CLEN-3106 branch December 4, 2025 10:37
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor This PR contains refactored existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.