method Socket.prototype.on
Usage in Deno
```typescript import { Socket } from "node:node__dgram.d.ts"; ```
Socket.prototype.on(event: "message",listener: (msg: Buffer,rinfo: RemoteInfo,) => void,): this
listener: (msg: Buffer,rinfo: RemoteInfo,) => void
this