method Server.prototype.on
Overload 1
#Server.prototype.on(event: string,listener: (...args: any[]) => void,): this
Overload 2
#Server.prototype.on(event: "close",listener: () => void,): this
Overload 3
Overload 4
#Server.prototype.on(event: "error",listener: (err: Error) => void,): this
Overload 5
#Server.prototype.on(event: "listening",listener: () => void,): this
Overload 6
#Server.prototype.on(event: "drop",listener: (data?: DropArgument) => void,): this
Parameters #
#event: "drop"
#listener: (data?: DropArgument) => void
Return Type #
this