Skip to main content

emit

method Server.prototype.emit
Jump to headingServer.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
Jump to headingServer.prototype.emit(event: "close"): boolean

Parameters Jump to heading

Jump to headingevent: "close"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "connection",
socket: Socket,
): boolean

Parameters Jump to heading

Jump to headingevent: "connection"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(event: "listening"): boolean

Parameters Jump to heading

Jump to headingevent: "listening"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "drop",
data?: DropArgument,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Back to top