SocketApiState

sealed class SocketApiState

The current connection state of the SocketAPI. This is always Disconnected when there are no active subscriptions.

Inheritors

Types

Link copied to clipboard

There is an active connection.

Link copied to clipboard

A connection is currently in progress.

Link copied to clipboard
data class Disconnected(val error: Throwable? = null) : SocketApiState

There is no current connection. This is the default state. Optionally contains the error that caused the socket to disconnect.