tls.connect(port[, host][, options][, callback])
port<number>options.port的默认值。host<string>options.host的默认值。options<Object> 见tls.connect()。callback<Function> 见tls.connect()。- 返回值:<tls.TLSSocket>
与 tls.connect() 相同,不同的是 port 和 host 可以作为参数提供,而不是作为选项。
【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.】