removeEventListener

Bun

Symbol

EventSource.removeEventListener

removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

removeEventListener(type: string, listener: (this: EventSource, event: new (type: string, eventInitDict?: MessageEventInit<T>) => MessageEvent<T>) => any, options?: boolean | EventListenerOptions): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference