CloseReason

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

A WebSocket close reason.

Constructors

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

Types

Link copied to clipboard

Standard close reason codes

Properties

Link copied to clipboard
val code: Short
Link copied to clipboard

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

Link copied to clipboard

Functions

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