CloseReason

data class CloseReason(code: Short, message: String)

Websocket close reason

Constructors

Link copied to clipboard
fun CloseReason(code: CloseReason.Codes, message: String)
Link copied to clipboard
fun CloseReason(code: Short, message: String)

Types

Link copied to clipboard
enum Codes : Enum<CloseReason.Codes>

Standard close reason codes

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val code: Short
Link copied to clipboard
val knownReason: CloseReason.Codes?

An enum value for this code or null if the code is not listed in Codes

Link copied to clipboard
val message: String