close

fun close()

Closes the open connection.

If the connection is not started, this method does nothing.