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

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.UdpListenOptions

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.UdpListenOptions
implements ListenOptions
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { UdpListenOptions } = Deno;

UNSTABLE: New API, yet to be vetted.

Unstable options which can be set when opening a datagram listener via Deno.listenDatagram.

Properties

optional
reuseAddress: boolean = false

When true the specified address will be reused, even if another process has already bound a socket on it. This effectively steals the socket from the listener.

optional
loopback: boolean = false

When true, sent multicast packets will be looped back to the local socket.