Hierarchy

  • EventSourceInitDict

Properties

body?: string
errorFilter: ((err) => boolean)

Type declaration

headers: {
    [key: string]: string | string[];
}

Type declaration

  • [key: string]: string | string[]
initialRetryDelayMillis: number
method?: string
readTimeoutMillis: number
retryResetIntervalMillis: number
urlBuilder?: (() => string)

Type declaration

    • (): string
    • Optional callback that returns a fresh URL on each reconnection attempt. When provided, the EventSource implementation should call this instead of reusing the original URL. This allows query parameters (e.g. basis) to be updated between reconnections.

      Returns string

Generated using TypeDoc