SessionState

sealed class SessionState

SessionState represents the actual state of the websocket connection. After connection is established it changes from SessionState.Connecting to SessionState.Open and when connection is closed it is SessionState.Closed.

Types

Closed
Link copied to clipboard
js
class Closed(event: CloseEvent) : SessionState
indicates closed state
Connecting
Link copied to clipboard
js
object Connecting : SessionState
indicates connecting state
Open
Link copied to clipboard
js
class Open(event: Event) : SessionState
indicates open state

Functions

asShort
Link copied to clipboard
js
abstract fun asShort(): Short
gives the SessionState as Short
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String

Inheritors

SessionState
Link copied to clipboard
SessionState
Link copied to clipboard
SessionState
Link copied to clipboard