eventregistry - v11.0.0
    Preparing search index...

    Interface RecentFeedOptions

    Options of a recent-activity feed on top of the GetRecentArticles / GetRecentEvents arguments.

    interface RecentFeedOptions {
        cursor?: RecentCursor;
        onCursor?: (cursor: RecentCursor) => void | Promise<void>;
        pollMs?: number;
        signal?: AbortSignal;
        timeoutMs?: number;
    }

    Hierarchy (View Summary)

    Index
    cursor?: RecentCursor

    Resume after a position saved from onCursor. Without it the feed starts at the API's current position.

    onCursor?: (cursor: RecentCursor) => void | Promise<void>

    Called with the new position after each poll that moved it. Awaited, so a slow store applies backpressure.

    pollMs?: number

    Wait between polls in milliseconds. The API refreshes about once a minute. Default 60000.

    signal?: AbortSignal

    Aborts the call: waiting in the queue, the HTTP request and backoff waits all stop.

    timeoutMs?: number

    Overall deadline in milliseconds for the call, queueing, retries and backoff waits included. Exceeding it rejects with ErTimeoutError.