Using a Ti.Network.Socket.TCP socket for connections protected with TLS currently doesn't work. No TLS handshake will be started although the underlying socket implementations support this.
Support for TLS protected socket connections should be added.
- Introduce new option useTls when creating a new TCP socket to manually enable TLS.
Steps to reproduce the behavior
The connection cannot be established and a socket error is thrown.
The connection via TLS works without issues and the response is printed to the console.