close

abstract suspend fun close(): Result<Unit>

Closes the connection and its stream.

Return

The result of closing the session.