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.

Inheritors

Types

Link copied to clipboard
class Closed(val event: CloseEvent) : SessionState

indicates closed state

Link copied to clipboard

indicates connecting state

Link copied to clipboard
class Open(val event: Event) : SessionState

indicates open state

Functions

Link copied to clipboard
abstract fun asShort(): Short

gives the SessionState as Short