Skip to main content
BroadcastChannel.addEventListener - Messaging - Web documentation
method BroadcastChannel.addEventListener
Private
BroadcastChannel.addEventListener<K extends keyof BroadcastChannelEventMap>(
type: K,
listener: () => any,
options?: boolean | AddEventListenerOptions,
): void

Type Parameters

K extends keyof BroadcastChannelEventMap

Parameters

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

Return Type

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

Parameters

type: string
optional
options: boolean | AddEventListenerOptions

Return Type

void