• Listens for incoming connections on the selected transport.

    Parameters

    • transport: Transport

      Transport type.

    • host: string

      Hostname for listening on.

    • Optionalport: string | number

      Listening port (where applicable).

    • Optionaloptions: ListenOptions

      Extra listen options.

    Returns Promise<Listener | DatagramEndpoint>