Documentation
    Preparing search index...

    Interface StreamCheckpointsOptions<Include, Frames>

    interface StreamCheckpointsOptions<
        Include extends StreamCheckpointInclude = {},
        Frames extends StreamFrameOptions = {},
    > {
        delivery?: "poll" | "subscribe";
        end?: StreamEnd;
        follow?: boolean;
        frames?: Frames;
        include?: Include;
        onStatus?: (status: StreamStatus) => void;
        order?: SuiClientTypes.Order;
        pollInterval?: number;
        retry?: StreamRetryOptions;
        signal?: AbortSignal;
        start?: StreamStart;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    delivery?: "poll" | "subscribe"

    How a followed stream receives new data: a live subscription, or polling every pollInterval.

    'subscribe'
    
    end?: StreamEnd

    Where a finite stream stops (exclusive).

    follow?: boolean

    Keep following new checkpoints after the history.

    true for an ascending stream without an end

    frames?: Frames

    Control frames to emit alongside items.

    include?: Include
    onStatus?: (status: StreamStatus) => void

    Called synchronously with each status. Throwing ends the stream with that error.

    Defaults to the resume token's order, else 'ascending'.

    pollInterval?: number

    Milliseconds between polls, and between reads while waiting for the server to index.

    1000
    
    signal?: AbortSignal
    start?: StreamStart

    Where to start: at a checkpoint, or after the frame that carried a resume token. Required for a finite ascending read.