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

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

indicates closed state

Link copied to clipboard
object Connecting : SessionState

indicates connecting state

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

indicates open state

Functions

Link copied to clipboard
abstract fun asShort(): Short

gives the SessionState as Short

Inheritors

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