ConnectionStatus

sealed class ConnectionStatus

An enumeration of the various status values for a connection. This describes the status of an object that attempts to maintain a persistent connection.

Since

200.2.0

See also

Inheritors

Types

Link copied to clipboard

The connection is open. This is the initial state after the handshake has been completed.

Link copied to clipboard
data class Connecting(val previousConnectionError: Throwable?) : ConnectionStatus

A connection with the remote endpoint has been initiated but is not yet complete.

Link copied to clipboard

The connection is not open. This is the initial state of the connection.

Link copied to clipboard
data class Failed(val connectionError: Throwable) : ConnectionStatus

The connection has failed.