feat: send unified session (#2294)

* fix: improve message resend logic by adding checks for message IDs

* Revert "fix: improve message resend logic by adding checks for message IDs"

This reverts commit c03f9d8e6fc6cbfbb9d1f8f67c169700e704213d.

* feat: add unified session handling and time constants

* refactor: improve socket variable destructuring and presence update logic

* fix: remove unnecessary semicolons in socket and time constants definitions

* fix: handle invalid server time offset parsing in makeSocket function
This commit is contained in:
Matheus Filype
2026-01-24 20:51:47 -03:00
committed by GitHub
parent f829b6d7a8
commit d514764686
3 changed files with 82 additions and 3 deletions
+7
View File
@@ -137,3 +137,10 @@ export const DEFAULT_CACHE_TTLS = {
CALL_OFFER: 5 * 60, // 5 minutes
USER_DEVICES: 5 * 60 // 5 minutes
}
export const TimeMs = {
Minute: 60 * 1000,
Hour: 60 * 60 * 1000,
Day: 24 * 60 * 60 * 1000,
Week: 7 * 24 * 60 * 60 * 1000
}