Skip to content
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

Fix subscribe request aggregation in SharedWorker. #403

Merged
merged 6 commits into from
Sep 30, 2024

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented Sep 29, 2024

fix(shared-worker): fix presence leave request preparation

Fix issue because of which leave request modified wrong URL path component with actual channels.

fix(shared-worker): fix channels / groups list modification issues

Fix issue because of which removed channels / groups didn't cancel previous subscribe request to re-subscribe with new set of channels / groups.

fix(shared-worker): fix requests aggregation issues

Fix issue because of which suitable active PubNub clients subscription not has been used for aggregation and caused additional connections or wrong set of channels / groups.

refactor(subscription): process messages only for subscribed

Pre-process entries from subscribe response to filter out updates which has been received for channels and groups which are not part of subscription loop (subscription aggregation in shared worker).

refactor(package): add types entry for Node.js integration

Point to the built-in types definition file when package used with npm / yarn.

Fix issue because of which leave request modified wrong URL path component with actual channels.

fix(shared-worker): fix channels / groups list modification issues

Fix issue because of which removed channels / groups didn't cancel previous subscribe request to
re-subscribe with new set of channels / groups.

fix(shared-worker): fix requests aggregation issues

Fix issue because of which suitable active PubNub clients subscription not has been used for
aggregation and caused additional connections or wrong set of channels / groups.

refactor(subscription): process messages only for subscribed

Pre-process entries from subscribe response to filter out updates which has been received for
channels and groups which are not part of subscription loop (subscription aggregation in shared
worker).

refactor(package): add `types` entry for Node.js integration

Point to the built-in types definition file when package used with npm / yarn.
@parfeon parfeon added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. type: fix This PR contains fixes to existing features. labels Sep 29, 2024
@parfeon parfeon self-assigned this Sep 29, 2024
Copy link
Contributor

@mohitpubnub mohitpubnub left a comment

Choose a reason for hiding this comment

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

LGTM!

src/core/endpoints/subscribe.ts Show resolved Hide resolved
@parfeon
Copy link
Contributor Author

parfeon commented Sep 30, 2024

@pubnub-release-bot release

@parfeon parfeon merged commit 0beda2c into master Sep 30, 2024
7 checks passed
@parfeon parfeon deleted the fix/service-worker-aggregation-issues branch September 30, 2024 23:32
@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
priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved. type: fix This PR contains fixes to existing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants