interface Deno.Listener
implements AsyncIterable<Conn>

A generic network listener for stream-oriented protocols.

Properties

readonly
addr: Addr
[src]

Return the address of the Listener.

readonly
rid: number
[src]

Return the rid of the Listener.

Methods

accept(): Promise<Conn>[src]

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

close(): void[src]

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

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