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

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

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

UNSTABLE: New API, yet to be vetted.

Represents membership of a IPv4 multicast group.

Properties

leave: () => Promise<void>

Leaves the multicast group.

setLoopback: (loopback: boolean) => Promise<void>

Sets the multicast loopback option. If enabled, multicast packets will be looped back to the local socket.

setTTL: (ttl: number) => Promise<void>

Sets the time-to-live of outgoing multicast packets for this socket.