Represents a connection to Ably.
The current error, if any, that caused the connection to enter the current status.
The current status of the connection.
Removes all listeners that were added by the onStatusChange method.
onStatusChange
Registers a listener that will be called whenever the connection status changes.
The function to call when the status changes.
An object that can be used to unregister the listener.
Represents a connection to Ably.