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