Deno.Listener
A generic network listener for stream-oriented protocols.
interface Listener
extends AsyncIterable<Conn> {
readonly rid: number;
[[Symbol.asyncIterator]]()
: AsyncIterableIterator<Conn>;
close(): void;
}
Properties
Return the address of the Listener
.
Return the rid of the Listener
.
Methods
[[Symbol.asyncIterator]]()
: AsyncIterableIterator<Conn>
Waits for and resolves to the next connection to the Listener
.
Close closes the listener. Any pending accept promises will be rejected with errors.