method Socket.prototype.on
Jump to headingSocket.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 headingSocket.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 headingSocket.prototype.on(event: "connect",listener: () => void,): this
Parameters Jump to heading
Jump to headingevent: "connect"
Jump to headinglistener: () => void
Return Type Jump to heading
this
Jump to headingSocket.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 headingSocket.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 headingSocket.prototype.on(event: "message",listener: (msg: Buffer,rinfo: RemoteInfo,) => void,): this
Parameters Jump to heading
Jump to headingevent: "message"
Jump to headinglistener: (msg: Buffer,rinfo: RemoteInfo,) => void
Return Type Jump to heading
this