Skip to main content

emit

method MessagePort.prototype.emit
Jump to headingMessagePort.prototype.emit(event: "close"): boolean

Parameters Jump to heading

Jump to headingevent: "close"

Return Type Jump to heading

boolean
Jump to headingMessagePort.prototype.emit(
event: "message",
value: any,
): boolean

Parameters Jump to heading

Jump to headingevent: "message"

Return Type Jump to heading

boolean
Jump to headingMessagePort.prototype.emit(
event: "messageerror",
error: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "messageerror"
Jump to headingerror: Error

Return Type Jump to heading

boolean
Jump to headingMessagePort.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Back to top