close

abstract fun close(errorCode: Long, reason: ByteArray)

Close the connection immediately with the given application error code.

Signed for Kotlin/Swift ergonomics; negative values are rejected.