close

open override fun close()

Closes the connection with the remote mdoc or mdoc reader.

Messages previously sent with sendMessage will be sent before the connection is closed.

If not connected, this method does nothing.

After calling this method, no more callbacks will be delivered.