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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user