CLOSE_REASON_MAX_LENGTH_BYTES

const val CLOSE_REASON_MAX_LENGTH_BYTES: Int = 123

The maximum number of UTF-8 bytes allowed by the web socket protocol for the "reason" in close frames. This limit is defined in section 5.5 of the RFC-6455.

Sources

Link copied to clipboard