rmapi-js
    Preparing search index...

    Interface SyncStatus

    what the library's syncs are doing

    interface SyncStatus {
        active: number;
        fetching?: {
            discovered: number;
            last?: string;
            loaded: number;
            total: number;
        };
        lastFailure?: SyncFailure;
        running: boolean;
        sending?: {
            sent: number;
            sentBytes: number;
            total: number;
            totalBytes: number;
        };
    }
    Index
    active: number

    the syncs in flight, including ones waiting behind another

    fetching?: { discovered: number; last?: string; loaded: number; total: number }

    the progress of the running fetch

    Type Declaration

    • discovered: number

      the items at a state this device has not seen

    • Optionallast?: string

      the item just read or skipped, for the progress after its read

    • loaded: number

      the items read or skipped so far

    • total: number

      the items in the account

    lastFailure?: SyncFailure

    the last sync that failed, cleared when one succeeds

    running: boolean

    whether any sync is in flight

    sending?: { sent: number; sentBytes: number; total: number; totalBytes: number }

    the progress of the running write

    Type Declaration

    • sent: number

      the files sent so far

    • sentBytes: number

      the bytes of the files sent so far

    • total: number

      the files the write sends

    • totalBytes: number

      the bytes of the files the write sends