Skip to content

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented Sep 8, 2025

fix(shared-worker): fix newer access token override

Fix issue because of which requests aggregated from other clients were able to override previously explicitly set newer access token.

feat(presence-state): send new presence state to the SharedWorker

Send new presence state to the SharedWorker as soon as it has been set with setState to avoid race conditions between regular heartbeats and backup heartbeats.

refactor(shared-worker): exclude presence state from long-poll subscribe request

Remove presence state from long-poll subscribe requests as part of the transition to explicit
heartbeat.

Fix issue because of which requests aggregated from other clients were able to override previously
explicitly set newer access token.

feat(presence-state): send new presence `state` to the `SharedWorker`

Send new presence `state` to the `SharedWorker` as soon as it has been set with `setState` to avoid
race conditions between regular heartbeats and `backup` heartbeats.

refactor(shared-worker): exclude presence `state` from long-poll subscribe request

Remove presence `state` from long-poll subscribe requests as part of the transition to explicit
 heartbeat.
@parfeon parfeon self-assigned this Sep 8, 2025
@parfeon parfeon requested a review from mohitpubnub as a code owner September 8, 2025 13:15
@parfeon parfeon added status: done This issue is considered resolved. priority: high This PR should be reviewed ASAP. type: fix This PR contains fixes to existing features. type: refactor This PR contains refactored existing features. labels Sep 8, 2025
@pubnub-ops-terraform
Copy link

pubnub-ops-terraform commented Sep 8, 2025

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

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

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.

some queries.
overall looks good.

@parfeon
Copy link
Contributor Author

parfeon commented Sep 9, 2025

@pubnub-release-bot release

@parfeon parfeon merged commit 84caf59 into master Sep 9, 2025
9 checks passed
@parfeon parfeon deleted the refactor/sw-backup-heartbeat branch September 9, 2025 10:55
@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: high This PR should be reviewed ASAP. status: done This issue is considered resolved. type: fix This PR contains fixes to existing features. type: refactor This PR contains refactored existing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants