method Socket.prototype.on
Usage in Deno
```typescript import { Socket } from "node:node__net.d.ts"; ```
Socket.prototype.on(event: "connectionAttempt",listener: (ip: string,port: number,family: number,) => void,): this
Socket.prototype.on(event: "connectionAttemptFailed",listener: (ip: string,port: number,family: number,) => void,): this
Socket.prototype.on(event: "connectionAttemptTimeout",listener: (ip: string,port: number,family: number,) => void,): this
Socket.prototype.on(event: "lookup",listener: (err: Error,address: string,family: string | number,host: string,) => void,): this