Function connect

  • Creates a connection to the target host + port over the selected transport.


    • transport: Transport

      Type of transport for the connection.

    • host: string

      Hostname for the connection. Basic lookup using getaddrinfo will be performed.

    • Optional port: string | number

      Destination port (where applicable).

    • Optional options: ConnectOptions

      Extra connection options.

    Returns Promise<Connection | DatagramEndpoint>

Generated using TypeDoc