Skip to main content

on

method Server.prototype.on
Jump to headingServer.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "connection",
listener: (socket: Socket) => void,
): this

Parameters Jump to heading

Jump to headingevent: "connection"
Jump to headinglistener: (socket: Socket) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "error",
listener: (err: Error) => void,
): this

Parameters Jump to heading

Jump to headingevent: "error"
Jump to headinglistener: (err: Error) => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "listening",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "listening"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingServer.prototype.on(
event: "drop",
listener: (data?: DropArgument) => void,
): this

Parameters Jump to heading

Jump to headingevent: "drop"
Jump to headinglistener: (data?: DropArgument) => void

Return Type Jump to heading

this
Back to top