Skip to main content

addEventListener

method MessagePort.addEventListener
Jump to headingMessagePort.addEventListener<K extends keyof MessagePortEventMap>(
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 headingMessagePort.addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
Back to top