Options
All
  • Public
  • Public/Protected
  • All
Menu

A Listener is a generic network listener for stream-oriented protocols.

Hierarchy

  • Listener

Index

Methods

Methods

accept

  • accept(): Promise<Conn>
  • Waits for and resolves to the next connection to the Listener.

    Returns Promise<Conn>

addr

  • Return the address of the Listener.

    Returns Addr

close

  • close(): void
  • Close closes the listener. Any pending accept promises will be rejected with errors.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc