Configure the factory for generating clients.
The base URL to create clients with.
The AS token to use as the access_token
The AS's user_id
Construct a new Matrix JS SDK Client. Calling this twice with the same args will return the same client instance.
The user_id to scope the client to. A new client will be created per user ID. If this is null, a client scoped to the application service itself will be created.
The request ID to additionally scope the client to. If set, this will create a new client per user ID / request combo. This factory will dispose the created client instance when the request is resolved.
Set a function to be called when logging requests and responses.
The function to invoke. The first arg is the string to log. The second arg is a boolean which is 'true' if the log is an error.
Generated using TypeDoc