public connect(host as String, port as Int) as Void throws SSLException:
Connects this TLS socket.
| Parameter | Description |
|---|---|
host | Remote host. |
port | Remote port. |
import klyn.net.ssl
socket = SSLSocket()
socket.connect("example.com", 443)
print(socket.isConnected)
socket.close()