-
Notifications
You must be signed in to change notification settings - Fork 399
Fix entity usage issue #460
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 issue because of which in new flow `heartbeat` request not cancelled properly when issued in burst. fix(cbor): fix issue with resource name as integer Fix issue because resource names, which consist only of integers, have been decoded as Unicode characters. fix(subscription): fix issue with unsubscription on entity with a similar name Fix issue because the entity that has been created with `-pnpres` suffix has been removed from subscription loop during unsubscribe from entity with presence listening capability. feat(shared-worker): start backup heartbeat timer Launch a backup heartbeat timer per registered PubNub instance in SharedWorker context to protect against browsers throttling of background (hidden) tabs. refactor(logger): use explicit names of classes instead of constructor Use string names of classes for locations instead of dynamic access to constructor names because it affect how logs looks like after minification.
🎉 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) |
return string + String.fromCharCode(byte); | ||
}, ''); | ||
} else if (isNumber(key) || (keyIsString && !isNaN(Number(key)))) { | ||
stringifiedKey = String.fromCharCode(isNumber(key) ? key : parseInt(key, 10)); |
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.
👍🏻
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.
LGTM
@@ -149,7 +149,7 @@ export class EventEngine { | |||
} | |||
|
|||
unsubscribeAll(isOffline: boolean = false): void { | |||
const channelGroups = this.getSubscribedChannels(); | |||
const channelGroups = this.getSubscribedChannelGroups(); |
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.
good catch!
@@ -33,8 +33,8 @@ export const HeartbeatFailedState = new State<HeartbeatFailedStateContext, Event | |||
|
|||
HeartbeatFailedState.on(joined.type, (context, event) => | |||
HeartbeatingState.with({ | |||
channels: [...context.channels, ...event.payload.channels], | |||
groups: [...context.groups, ...event.payload.groups], | |||
channels: [...context.channels, ...event.payload.channels.filter((channel) => !context.channels.includes(channel))], |
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.
good to have this
this filtering was missing in presence event engine
@pubnub-release-bot release |
🚀 Release successfully completed 🚀 |
fix(subscription-flow): fix
heartbeat
cancellation failureFix issue because of which in new flow
heartbeat
request not cancelled properly when issued inburst.
fix(cbor): fix issue with resource name as integer
Fix issue because resource names, which consist only of integers, have been decoded as Unicode characters.
fix(subscription): fix issue with unsubscription on entity with a similar name
Fix issue because the entity that has been created with
-pnpres
suffix has been removedfrom subscription loop during unsubscribe from entity with presence listening capability.
feat(shared-worker): start backup heartbeat timer
Launch a backup heartbeat timer per registered PubNub instance in SharedWorker context to protect
against browsers throttling of background (hidden) tabs.
refactor(logger): use explicit names of classes instead of constructor
Use string names of classes for locations instead of dynamic access to constructor names because it affect how logs looks like after minification.