method Server.prototype.on
Usage in Deno
```typescript import { Server } from "node:node__net.d.ts"; ```
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