klyn.net.ssl.SSLSocket.connect
method
public connect(host as String, port as Int) as Void throws SSLException:
Description
Connects this TLS socket.
import klyn.net.ssl

socket = SSLSocket()
socket.connect("example.com", 443)
print(socket.isConnected)
socket.close()
Parameters
  • host Remote host.
  • port Remote port.
Throws
  • SSLException when the TLS connection fails. ```klyn import klyn.net.ssl socket = SSLSocket() socket.connect("example.com", 443) print(socket.isConnected) socket.close() ```