Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/dgram.ts>createSocket

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function createSocket
import { createSocket } from "https://deno.land/std@0.124.0/node/dgram.ts";

Parameters

type: SocketType
optional
listener: (msg: Buffer, rinfo: RemoteInfo) => void

Parameters

type: SocketOption
optional
listener: (msg: Buffer, rinfo: RemoteInfo) => void