2020-12-05 20:00:53 +05:30
|
|
|
// time constants (ms)
|
|
|
|
export const SAVE_TO_LOCAL_STORAGE_TIMEOUT = 300;
|
|
|
|
export const INITIAL_SCENE_UPDATE_TIMEOUT = 5000;
|
2021-10-21 22:05:48 +02:00
|
|
|
export const FILE_UPLOAD_TIMEOUT = 300;
|
|
|
|
export const LOAD_IMAGES_TIMEOUT = 500;
|
2020-12-05 20:00:53 +05:30
|
|
|
export const SYNC_FULL_SCENE_INTERVAL_MS = 20000;
|
|
|
|
|
2021-10-21 22:05:48 +02:00
|
|
|
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;
|
|
|
|
|
2020-12-05 20:00:53 +05:30
|
|
|
export const BROADCAST = {
|
|
|
|
SERVER_VOLATILE: "server-volatile-broadcast",
|
|
|
|
SERVER: "server-broadcast",
|
|
|
|
};
|
|
|
|
|
|
|
|
export enum SCENE {
|
|
|
|
INIT = "SCENE_INIT",
|
|
|
|
UPDATE = "SCENE_UPDATE",
|
|
|
|
}
|
2021-10-21 22:05:48 +02:00
|
|
|
|
|
|
|
export const FIREBASE_STORAGE_PREFIXES = {
|
|
|
|
shareLinkFiles: `/files/shareLinks`,
|
|
|
|
collabFiles: `/files/rooms`,
|
|
|
|
};
|
2021-11-07 14:33:21 +01:00
|
|
|
|
|
|
|
export const ROOM_ID_BYTES = 10;
|