The current error, if any, that caused the connection to enter the current status.
The current status of the connection.
Disposes of the connection instance, cleaning up any registered listeners. This method should be called when the connection is no longer needed.
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.