tls.connect(port[, host][, options][, callback])


tls.connect() 相同,除了 porthost 可以作为参数而不是选项提供。

端口或主机选项,如果指定,将优先于任何端口或主机参数。

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.