import { type Deno } from "https://deno.land/x/deno@v1.39.0/ext/net/lib.deno_net.d.ts";
const { Listener } = Deno;
A generic network listener for stream-oriented protocols.
Properties
readonly
addr: AddrReturn the address of the Listener
.
Methods
accept(): Promise<T>
Waits for and resolves to the next connection to the Listener
.
[[Symbol.asyncIterator]](): AsyncIterableIterator<T>
Make the listener block the event loop from finishing.
Note: the listener blocks the event loop from finishing by default.
This method is only meaningful after .unref()
is called.