Documentation
    Preparing search index...

    Interface UploadRelayConfig

    interface UploadRelayConfig {
        fetch?: Fetch;
        host: string;
        onError?: (error: Error) => void;
        sendTip?: null | UploadRelayTipConfig | { max: number };
        timeout?: number;
    }

    Hierarchy

    • UploadRelayClientOptions
      • UploadRelayConfig
    Index

    Properties

    fetch?: Fetch

    An optional custom fetch function.

    If not provided, defaults to the global fetch function (globalThis.fetch).

    globalThis.fetch
    
    host: string
    onError?: (error: Error) => void

    Callback for individual network errors.

    sendTip?: null | UploadRelayTipConfig | { max: number }
    timeout?: number

    An optional timeout for requests.

    30_000ms (30 seconds)