EventSource.addEventListener<K extends keyof EventSourceEventMap>(type: K,listener: (this: EventSource,ev: EventSourceEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
K extends keyof EventSourceEventMap
type: K
listener: (this: EventSource,ev: EventSourceEventMap[K],) => any
optional
options: boolean | AddEventListenerOptions
EventSource.addEventListener(type: string,listener: (this: EventSource,event: MessageEvent,) => any,options?: boolean | AddEventListenerOptions,): void
listener: (this: EventSource,event: MessageEvent,) => any
optional
options: boolean | AddEventListenerOptions
EventSource.addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
listener: EventListenerOrEventListenerObject
optional
options: boolean | AddEventListenerOptions