Opens a TCP connection (optionally TLS) and returns a buffered CoreSocket.
Resolves once the underlying socket reports it is open, or rejects with TimeoutError if the connect deadline elapses and ConnectionError for any other failure.
Connection options.
The connected socket.
If the connect deadline elapses.
If the connection cannot be established.
1.0.0
Opens a TCP connection (optionally TLS) and returns a buffered CoreSocket.
Resolves once the underlying socket reports it is open, or rejects with TimeoutError if the connect deadline elapses and ConnectionError for any other failure.