Constructor
# new PantalaimonClient(homeserverUrl, storageProvider)
Creates a new PantalaimonClient class for interacting with Pantalaimon. The storage
provider given will also be used in the client.
Parameters:
Name | Type | Description |
---|---|---|
homeserverUrl |
string
|
The homeserver (Pantalaimon) URL to interact with. |
storageProvider |
IStorageProvider
|
The storage provider to back the client with. |
Classes
Methods
# async createClientWithCredentials(username, password) → {Promise.<MatrixClient>}
Authenticates and creates the Pantalaimon-capable client. The username and password given
are only used if the storage provider does not reveal an access token.
Parameters:
Name | Type | Description |
---|---|---|
username |
string
|
The username to log in with, if needed. |
password |
string
|
The password to log in with, if needed. |
Resolves to a MatrixClient ready for interacting with Pantalaimon.
Promise.<MatrixClient>