Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.Listener

Deprecated! UUID is part of the deno standard library
Latest
interface Deno.Listener
import { type Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { Listener } = Deno;

A Listener is a generic network listener for stream-oriented protocols.

Methods

accept(): Promise<Conn>

Waits for and resolves to the next connection to the Listener.

close(): void

Close closes the listener. Any pending accept promises will be rejected with errors.

addr(): Addr

Return the address of the Listener.