ConnectionState

@Immutable
sealed class ConnectionState

Represents possible states of the WebSocket connection.

Inheritors

Types

Link copied to clipboard
@Immutable
data object Connected : ConnectionState

The client is connected to the WebSocket.

Link copied to clipboard
@Immutable
data object Connecting : ConnectionState

The client is trying to connect to the WebSocket.

Link copied to clipboard
@Immutable
data object Offline : ConnectionState

The client is permanently disconnected from the WebSocket.