connect

suspend fun connect(
    hostname: String,
    port: Int,
    configure: TCPClientSocketOptions.() -> Unit = {}
): Socket

Connect to hostname and port.

suspend fun connect(
    remoteAddress: NetworkAddress,
    configure: TCPClientSocketOptions.() -> Unit = {}
): Socket

Connect to remoteAddress.