Skip to content

Conversation

@parfeon
Copy link
Contributor

@parfeon parfeon commented Jul 14, 2025

fix(subscription): fix subscription reference timetoken

Fix incorrect subscription reference timetoken (used by listeners to filter old messages) caused by the server returning timetoken older than the previous one because of MX.

fix(subscription-set): fix event handling by subscription

Fix the issue because of which all subscriptions of the subscription set have been requested to handle the received event.

Fix incorrect subscription reference timetoken (used by listeners to filter old messages) caused by
the server returning timetoken older than previous one because of MX.

fix(subscription-set): fix event handling by subscription

Fix the issue because of which all subscriptions of the subscription set have been requested to
handle the received event.
@parfeon parfeon self-assigned this Jul 14, 2025
@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. labels Jul 14, 2025
@pubnub-ops-terraform
Copy link

pubnub-ops-terraform commented Jul 14, 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)

@parfeon parfeon changed the title Fix subscription reference timetime Fix subscription reference timetoken Jul 15, 2025
Replace the `onpagehide` listener assignment with `addEventListener` to ensure that the listener
won't be replaced.
transport = middleware;
if (configurationCopy.subscriptionWorkerUnsubscribeOfflineClients) {
window.onpagehide = (event) => {
window.addEventListener('pagehide', (event) => {
Copy link
Contributor

@mohitpubnub mohitpubnub Jul 15, 2025

Choose a reason for hiding this comment

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

okay so this will not overwrite others

and event.persisted will be false for both - soft and hard refresh 👍🏻

@parfeon
Copy link
Contributor Author

parfeon commented Jul 15, 2025

@pubnub-release-bot release

@parfeon parfeon merged commit b1a9f06 into master Jul 15, 2025
9 checks passed
@parfeon parfeon deleted the fix/reference-timetoken branch July 15, 2025 20:42
@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants