The module exports createSocket and Socket. The accepted socket types are
udp4 and udp6, and the socket surface includes the familiar bind, send,
connect, multicast, buffer-size, ref, unref, and close methods.
import dgram from "node:dgram";
const socket = dgram.createSocket("udp4");
console.log(socket.constructor.name); // SocketElide 1.5.0 limitation
UDP socket events are not integrated with one-shot script keep-alive in Elide
1.5.0. A socket can bind and report an address synchronously, but a loopback
send does not reach the listening, message, or close callbacks before the
process exits. Applications should not depend on node:dgram for live UDP
traffic in Elide 1.5.0.
When sandbox flags are active, network access is controlled by
--allow-net[=HOSTS] and --deny-net <HOSTS>.