connect(
addr,port,opts) ->socket,err
Connect to a remote TCP server
Creates a TCP socket, connects to addr:port, and optionally
performs a TLS handshake. Returns a wrapped TCP socket on success.
Options:
timeout (number): connection timeout in secondstls (table): if present, perform TLS after connecting (passed to starttls)cancel (token): cancel token; propagated to TLS handshake if tls.cancel is not set