Skip to main content
method MessagePort.prototype.emit
MessagePort.prototype.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

boolean
MessagePort.prototype.emit(
event: "message",
value: any,
): boolean
Deprecated

Parameters

event: "message"
value: any

Return Type

boolean
MessagePort.prototype.emit(
event: "messageerror",
error: Error,
): boolean
Deprecated

Parameters

event: "messageerror"
error: Error

Return Type

boolean
MessagePort.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top