-
Notifications
You must be signed in to change notification settings - Fork 401
Fix subscription reference timetoken #464
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
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.
🎉 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) |
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) => { |
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.
okay so this will not overwrite others
and event.persisted will be false for both - soft and hard refresh 👍🏻
|
@pubnub-release-bot release |
|
🚀 Release successfully completed 🚀 |
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.