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