method BroadcastChannel.addEventListener
Jump to headingBroadcastChannel.addEventListener<K extends keyof BroadcastChannelEventMap>(type: K,listener: (this: BroadcastChannel,ev: BroadcastChannelEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
Type Parameters Jump to heading
Jump to headingK extends keyof BroadcastChannelEventMap
Parameters Jump to heading
Jump to headingtype: K
Jump to headinglistener: (this: BroadcastChannel,ev: BroadcastChannelEventMap[K],) => any
optional
Jump to headingoptions: boolean | AddEventListenerOptions
Return Type Jump to heading
void
Jump to headingBroadcastChannel.addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
Parameters Jump to heading
Jump to headingtype: string
optional
Jump to headingoptions: boolean | AddEventListenerOptions
Return Type Jump to heading
void