• Establish a plain TCP connection, or a TLS handshake.

    Parameters

    • fd: number

      A socket handle.

    • host: string

      Host name, e.g., example.com

    • port: number

      TCP port number.

    • Optional tls: boolean

      If true, establish a TLS connection.

      Optional

    Returns void

Generated using TypeDoc