The connection has been explicitly closed by the client. In the closed state, no reconnection attempts are made automatically. No connection state is preserved by the service or the library.
An explicit request by the developer to close the connection has been sent to the Ably service. If a reply is not received from Ably within a short period of time, the connection is forcibly terminated and the connection status becomes Closed.
The library is currently connected to Ably.
The library is currently connecting to Ably.
The library is currently disconnected from Ably, but will attempt to reconnect.
The library is currently disconnected from Ably and will not attempt to reconnect.
A temporary state for when the library is first initialized.
The library is in an extended state of disconnection, but will attempt to reconnect.
The different states that the connection can be in through its lifecycle.