Skip to main content

addEventListener

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

Type Parameters Jump to heading

Parameters Jump to heading

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingtype: string
Jump to headinglistener: () => any
optional
Jump to headingoptions: boolean | AddEventListenerOptions

Return Type Jump to heading

void
Jump to headingEventSource.addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
Back to top