Skip to main content
method Worker.prototype.emit
Worker.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

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

Return Type

boolean
Worker.prototype.emit(event: "disconnect"): boolean
Deprecated

Parameters

event: "disconnect"

Return Type

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

Parameters

event: "error"
error: Error

Return Type

boolean
Worker.prototype.emit(
event: "exit",
code: number,
signal: string,
): boolean
Deprecated

Parameters

event: "exit"
code: number
signal: string

Return Type

boolean
Worker.prototype.emit(
event: "listening",
address: Address,
): boolean
Deprecated

Parameters

event: "listening"
address: Address

Return Type

boolean
Worker.prototype.emit(
event: "message",
message: any,
handle: net.Socket | net.Server,
): boolean
Deprecated

Parameters

event: "message"
message: any
handle: net.Socket | net.Server

Return Type

boolean
Worker.prototype.emit(event: "online"): boolean
Deprecated

Parameters

event: "online"

Return Type

boolean
Back to top