Skip to main content

Listener

interface Deno.Listener
extends AsyncIterable<T>Disposable

A generic network listener for stream-oriented protocols.

Type Parameters Jump to heading

Properties Jump to heading

Return the address of the Listener.

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

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

Make the listener block the event loop from finishing.

Note: the listener blocks the event loop from finishing by default. This method is only meaningful after .unref() is called.

Make the listener not block the event loop from finishing.

Back to top