Codes

enum class Codes

Standard close reason codes

see https://tools.ietf.org/html/rfc6455#section-7.4 for list of codes

Enum Values

NORMAL

GOING_AWAY

PROTOCOL_ERROR

CANNOT_ACCEPT

NOT_CONSISTENT

VIOLATED_POLICY

TOO_BIG

NO_EXTENSION

UNEXPECTED_CONDITION

SERVICE_RESTART

TRY_AGAIN_LATER

Properties

code

val code: Short

Companion Object Functions

byCode

fun byCode(code: Short): Codes?

Get enum value by close reason code