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.