On this page

    M

    tls.connect

    History
    tls.connect(port, host?, options?, callback?): tls.TLSSocket
    Attributes
    port:number
    Default value for options.port.
    host:string
    Default value for options.host.
    options:Object
    callback:Function

    Same as tls.connect() except that port and host can be provided as arguments instead of options.

    A port or host option, if specified, will take precedence over any port or host argument.