Add syncInterval
This commit is contained in:
parent
141db79f3a
commit
c9512ab8b1
3 changed files with 50 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ export interface SyncSettings {
|
|||
enableTelemetry: boolean;
|
||||
requestTimeoutMs: number;
|
||||
networkRetryIntervalMs: number;
|
||||
syncIntervalMs?: number;
|
||||
minimumSaveIntervalMs: number;
|
||||
}
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ export const DEFAULT_SETTINGS: SyncSettings = {
|
|||
enableTelemetry: false,
|
||||
requestTimeoutMs: 30_000,
|
||||
networkRetryIntervalMs: 1000,
|
||||
syncIntervalMs: undefined,
|
||||
minimumSaveIntervalMs: 1000
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { WebSocketClientMessage } from "./types/WebSocketClientMessage";
|
|||
import type { CursorPositionFromClient } from "./types/CursorPositionFromClient";
|
||||
import type { ClientCursors } from "./types/ClientCursors";
|
||||
import { createPromise } from "../utils/create-promise";
|
||||
import type { EventBatch } from "./protocol";
|
||||
import type { EventBatch } from "./types/EventBatch";
|
||||
import { WEBSOCKET_DISCONNECT_TIMEOUT_IN_S } from "../consts";
|
||||
import { removeFromArray } from "../utils/remove-from-array";
|
||||
import { EventListeners } from "../utils/data-structures/event-listeners";
|
||||
|
|
|
|||
3
frontend/sync-client/src/types/file-manifest-entries.ts
Normal file
3
frontend/sync-client/src/types/file-manifest-entries.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import type { FileManifest } from "../services/types/FileManifest";
|
||||
|
||||
export type FileManifestEntries = FileManifest["entries"];
|
||||
Loading…
Reference in a new issue