EventSource.addEventListener - Web documentation
method EventSource.addEventListener
EventSource.addEventListener<K extends keyof EventSourceEventMap>(
type: K,
listener: () => any,
options?: boolean | AddEventListenerOptions,
): void

Type Parameters

K extends keyof EventSourceEventMap

Parameters

type: K
listener: () => any
optional
options: boolean | AddEventListenerOptions

Return Type

void
EventSource.addEventListener(
type: string,
listener: () => any,
options?: boolean | AddEventListenerOptions,
): void

Parameters

type: string
listener: () => any
optional
options: boolean | AddEventListenerOptions

Return Type

void
EventSource.addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void

Parameters

type: string
optional
options: boolean | AddEventListenerOptions

Return Type

void