Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>deno.Listener

Deno cli to manage and bump release versions.
Latest
interface deno.Listener
import { type deno } from "https://deno.land/x/denoversion@v1.0.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.