-
Notifications
You must be signed in to change notification settings - Fork 401
Remove minimum presence timeout #446
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
Remove minimum limit for presence timeout (was 20 seconds) to make it possible specify shorter intervals. fix(shared-worker): fix issue because of which similar requests didn't stacked Fix issue because of which channels not aggregated and caused separate heartbeat requests.
| configurationCopy.presenceTimeout = PRESENCE_TIMEOUT_MAXIMUM; | ||
| // eslint-disable-next-line no-console | ||
| console.warn( | ||
| 'WARNING: Presence timeout is larger than the maximum. Using maximum value: ', |
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.
Great to have log types. 👍🏻
src/core/interfaces/configuration.ts
Outdated
| ); | ||
| } else if (configurationCopy.presenceTimeout <= 0) { | ||
| // eslint-disable-next-line no-console | ||
| console.warn('WARNING: Presence timeout is larger than zero.'); |
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.
nitpick - Shouldn't this be like "Presence timeout should be larger than zero" ? when value is negative or 0
|
@pubnub-release-bot release |
|
🚀 Release successfully completed 🚀 |
feat(presence): remove minimum presence timeout
Remove minimum limit for presence timeout (was 20 seconds) to make it possible specify shorter intervals.
fix(shared-worker): fix issue because of which similar requests didn't stacked
Fix issue because of which channels not aggregated and caused separate heartbeat requests.