method Socket.prototype.onimport { Socket } from "https://deno.land/std@0.127.0/node/dgram.ts"; on(event: "close", listener: () => void): thison(event: "connect", listener: () => void): thison(event: "error", listener: (err: Error) => void): thison(event: "listening", listener: () => void): thison(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): thison(event: string, listener: (...args: any[]) => void): thisParametersevent: "close"listener: () => voidReturnsthisParametersevent: "connect"listener: () => voidReturnsthisParametersevent: "error"listener: (err: Error) => voidReturnsthisParametersevent: "listening"listener: () => voidReturnsthisParametersevent: "message"listener: (msg: Buffer, rinfo: RemoteInfo) => voidReturnsthisParametersevent: stringlistener: (...args: any[]) => voidReturnsthis