ConnectionStatus
Describes the possible states of the client connection to the servers.
public enum ConnectionStatus: Equatable
Inheritance
Equatable
Enumeration Cases
initialized
The client is initialized but not connected to the remote server yet.
case initialized
disconnected
The client is disconnected. This is an initial state. Optionally contains an error, if the connection was disconnected due to an error.
case disconnected(error: ClientError? = nil)
connecting
The client is in the process of connecting to the remote servers.
case connecting
connected
The client is connected to the remote server.
case connected
disconnecting
The web socket is disconnecting.
case disconnecting