RTCForge API Reference v1.1.1
    Preparing search index...

    Interface TransferTuning

    Performance knobs shared by the manager and per-send options. All fields fall back to module defaults.

    interface TransferTuning {
        chunkSize?: number;
        highWaterMark?: number;
        lowWaterMark?: number;
        offerTimeoutMs?: number;
        parallelChannels?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chunkSize?: number

    Payload bytes per chunk (excluding the frame header).

    DEFAULT_CHUNK_SIZE

    highWaterMark?: number

    Data-channel bufferedAmount (bytes) at which the sender pauses to apply backpressure.

    lowWaterMark?: number

    bufferedAmountLowThreshold (bytes) at which the paused sender resumes.

    offerTimeoutMs?: number

    Milliseconds a sender waits for the receiver to accept an offer before the transfer fails (releasing its open channels). 0 disables the timeout.

    DEFAULT_OFFER_TIMEOUT_MS

    parallelChannels?: number

    Number of parallel binary data channels opened per transfer; chunks are striped across them.