method Server.prototype.on
Usage in Deno
import { Server } from "node:net";
Server.prototype.on(event: "connection",listener: (socket: Socket) => void,): this
listener: (socket: Socket) => void
this
Server.prototype.on(event: "drop",listener: (data?: DropArgument) => void,): this
listener: (data?: DropArgument) => void
this