This method returns the current authenticator chosen. If no authenticator was chosen yet or is not set, returns null.
The current authenticator chosen (if any).
This method returns the current URI chosen. If no URI was chosen yet, returns null.
The current URI chosen (if any).
This method provides additional detail to be included in an exception thrown by when the AMPS instance(s) are not available. Called by the Client when creating an exception.
A string with information about the connection that failed and the reason for the failure. When no further information is available, returns an empty string.
This method is invoked by the Client to indicate a connection failure occurred.
An error object containing an error message.
An object of properties associated with the failed connection.
This method is invoked by the Client to indicate a connection attempt was successful.
An object of properties associated with the successful connection.
This is the interface that defines methods used by the client in order to get a URI/Authenticator required for a connection attempt. A simple ServerChooser implementation is provided: DefaultServerChooser. It keeps a list of AMPS instance URIs and Authenticators, and advances to the next one when a failure occurs.