Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/adka/deno.d.ts>Deno.Listener

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
interface Deno.Listener
implements AsyncIterable<Conn>
import { type Deno } from "https://deno.land/x/adka@0.1.5/deno.d.ts";
const { Listener } = Deno;

A generic network listener for stream-oriented protocols.

Properties

readonly
addr: Addr

Return the address of the Listener.

readonly
rid: number

Return the rid of the Listener.

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.

[[Symbol.asyncIterator]](): AsyncIterableIterator<Conn>