The WebSocket URL of the Juju controller or model.
Connections options, including:
Optional credentials: CredentialsAn object with the user and password fields for userpass authentication or the macaroons field for bakery authentication. If an empty object is provided a full bakery discharge will be attempted for logging in with macaroons. Any necessary third party discharges are performed using the bakery instance provided in the options (see below).
Generated using TypeDoc
Connect to the Juju controller or model at the given URL and the authenticate using the given credentials.
Returns
This promise will be rejected if there is an error connecting, or resolved with a new {conn, logout} object. Note that the promise will not be resolved or rejected if a callback is provided.