Interface CreateResumableRealtimeSubscriptionOptions<TFeature>

interface CreateResumableRealtimeSubscriptionOptions<TFeature> {
    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

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