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