Skip to content

Conversation

@parfeon
Copy link
Contributor

@parfeon parfeon commented Mar 19, 2025

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.

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.
@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 Mar 19, 2025
@parfeon parfeon self-assigned this Mar 19, 2025
configurationCopy.presenceTimeout = PRESENCE_TIMEOUT_MAXIMUM;
// eslint-disable-next-line no-console
console.warn(
'WARNING: Presence timeout is larger than the maximum. Using maximum value: ',
Copy link
Contributor

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. 👍🏻

);
} else if (configurationCopy.presenceTimeout <= 0) {
// eslint-disable-next-line no-console
console.warn('WARNING: Presence timeout is larger than zero.');
Copy link
Contributor

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

@parfeon
Copy link
Contributor Author

parfeon commented Mar 20, 2025

@pubnub-release-bot release

@parfeon parfeon merged commit 71ba3a1 into master Mar 20, 2025
6 of 7 checks passed
@parfeon parfeon deleted the refactor/presence-timeout-threshold branch March 20, 2025 13:13
@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.

3 participants