Skip to main content

emit

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

Parameters Jump to heading

Jump to headingevent: "close"

Return Type Jump to heading

boolean
Jump to headingSocket.prototype.emit(event: "connect"): boolean

Parameters Jump to heading

Jump to headingevent: "connect"

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "listening"

Return Type Jump to heading

boolean
Jump to headingSocket.prototype.emit(
event: "message",
msg: Buffer,
rinfo: RemoteInfo,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Back to top