lib/websocket.js
function tlsConnect(options) {
  options.path = undefined;
  options.servername = options.servername || options.host;
  return tls.connect(options);
}
function tlsConnect(options) {
  options.path = undefined;
  options.servername = options.servername || options.host;
  return tls.connect(options);
}
function tlsConnect ( options ) { options . path = undefined ; options . servername = options . servername || options . host ; return tls . connect ( options ) ; }
Create a `tls.TLSSocket` and initiate a connection.

@param {Object} options Connection options
@return {tls.TLSSocket} The newly created socket used to start the connection
@private
Create a tls . TLSSocket and initiate a connection .