import { type Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { DatagramConn } = Deno;
UNSTABLE:: new API, yet to be vetted.
A generic transport listener for message-oriented protocols.
Methods
UNSTABLE: new API, yet to be vetted.
Waits for and resolves to the next message to the UDPConn
.
UNSTABLE: new API, yet to be vetted.
Sends a message to the target.
UNSTABLE: new API, yet to be vetted.
Close closes the socket. Any pending message promises will be rejected with errors.