@honua/sdk-js
    Preparing search index...

    Interface CreateResumableRealtimeSubscriptionOptions<TFeature>

    interface CreateResumableRealtimeSubscriptionOptions<TFeature = unknown> {
        apply: (
            event: RealtimeSequencedEvent<TFeature>,
            signal: AbortSignal,
        ) => void | Promise<void>;
        checkpointStore?: RealtimeCheckpointStore;
        context: RealtimeResumeContextV1;
        initialCheckpoint?: RealtimeDurableCheckpointV1;
        maxPendingEvents?: number;
        maxRecentEventIds?: number;
        now?: () => number;
        signal?: AbortSignal;
    }

    Type Parameters

    • TFeature = unknown
    Index

    Properties

    apply: (
        event: RealtimeSequencedEvent<TFeature>,
        signal: AbortSignal,
    ) => void | Promise<void>
    checkpointStore?: RealtimeCheckpointStore
    initialCheckpoint?: RealtimeDurableCheckpointV1

    Takes precedence over checkpointStore.load when supplied.

    maxPendingEvents?: number

    Includes the currently applying event.

    64
    
    maxRecentEventIds?: number

    Bounded event-id history persisted with each checkpoint.

    256
    
    now?: () => number
    signal?: AbortSignal