rmapi-js
    Preparing search index...

    Interface PlatformOptions

    the parts fetchPlatform is made of, each replaceable

    interface PlatformOptions {
        concurrency?: number;
        connect?: (
            request: PlatformRequest,
        ) => Promise<PlatformSocket | PlatformResponse>;
        fetch?: FetchFunction;
        maxBatch?: number;
        maxTransientRetries?: number;
        requestTimeoutMs?: number;
        state?: StateStore;
        store?: Store;
    }

    Hierarchy (View Summary)

    Index
    concurrency?: number

    how many requests of a batch are in flight at once

    32
    
    connect?: (
        request: PlatformRequest,
    ) => Promise<PlatformSocket | PlatformResponse>

    opens the notification socket

    Type Declaration

    connectWebSocket, asking through fetch whether a handshake that failed was refused

    the function requests go through

    the global fetch, looked up on every request

    maxBatch?: number

    the most requests one batch carries, and the most blobs one has or put of the store

    1024
    
    maxTransientRetries?: number

    how many times to retry a request after a network failure, a 5xx or a 429

    Only requests the core marks as safe to repeat are retried: never a root write, a registration, or an upload to the ingestion endpoint.

    3
    
    requestTimeoutMs?: number

    how long a request may wait for its answer, or for the next piece of the answer's body, before it is given up as unanswered, in milliseconds; Infinity, or anything above 2^31 - 1, for no limit

    A body sent is not timed: how long one takes depends on its size.

    60000
    
    state?: StateStore

    where a library keeps its saved state

    a MemoryState

    store?: Store

    where blobs are kept: document bodies, and the pages and copies the offline library works on

    a MemoryStore