Allows customization of both the root (default) logger and any ancillary loggers.
Convergence.configureLogging({
root: LogLevel.ERROR,
loggers: {
"connection": LogLevel.DEBUG
}
});
The available loggers (and where / how they are used) are:
the log levels for the root logger and any other loggers.
Connects to a Convergence Domain using username / password authentication.
The URL of the Convergence Domain to connect to.
The username of the Convergence Domain User to connect as.
The password for the corresponding Convergence Domain User.
Options that configure the behavior of the client.
Allow the user to bind a callback to cancel the connection.
A Promise which will be resolved with the ConvergenceDomain upon successful connection.
Connects to a Convergence Domain using anonymous authentication. For this to work, the domain must be configured to allow anonymous authentication.
The URL of the Convergence Domain to connect to.
The display name to use for the anonymous user.
Options that configure the behavior of the client.
Allow the user to bind a callback to cancel the connection.
A Promise which will be resolved with the ConvergenceDomain upon successful connection.
Connects to a Convergence Domain using a JSON Web Token (JWT) for authentication. See the developer guide for information about configuring the server to accept JWTs.
The URL of the Convergence Domain to connect to.
A valid JSON Web Token (JWT) indicating the Domain User to connect as.
Options that configure the behavior of the client.
Allow the user to bind a callback to cancel the connection.
A Promise which will be resolved with the ConvergenceDomain upon successful connection.
Connects to a Convergence Domain using username / password authentication.
The URL of the Convergence Domain to connect to.
The username and password of the Convergence Domain User to connect as.
Options that configure the behavior of the client.
Allow the user to bind a callback to cancel the connection.
A Promise which will be resolved with the ConvergenceDomain upon successful connection.
Reconnects to the specified domain using a previously generated reconnect token (which can be obtained from an existing ConvergenceSession).
The URL of the Convergence Domain to connect to
The reconnect token to use for authentication
Options that configure the behavior of the client.
Allow the user to bind a callback to cancel the connection.
A Promise which will be resolved with the ConvergenceDomain upon successful connection.
This is the entry point for the Convergence JS client. It allows users to connect to the Convergence Engine using a variety of authentication methods. On success, each connection method returns a ConvergenceDomain bound to the Domain at the specified URL.
See the Developer Guide for more information about authentication options.