feat: pause collab when user switches tabs in the browser

This commit is contained in:
Arnošt Pleskot
2023-07-11 16:55:11 +02:00
parent 1badf14a93
commit addf9d71fa
5 changed files with 109 additions and 16 deletions
+2
View File
@@ -12,6 +12,8 @@ export const FILE_UPLOAD_MAX_BYTES = 3 * 1024 * 1024; // 3 MiB
// 1 year (https://stackoverflow.com/a/25201898/927631)
export const FILE_CACHE_MAX_AGE_SEC = 31536000;
export const PAUSE_COLLABORATION_TIMEOUT = 30000;
export const WS_EVENTS = {
SERVER_VOLATILE: "server-volatile-broadcast",
SERVER: "server-broadcast",