CloseReason

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

A 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

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

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

Link copied to clipboard