Class

MatrixClient

MatrixClient#MatrixClient(homeserverUrl, accessToken, storage, cryptoStore)

Constructor

# new MatrixClient(homeserverUrl, accessToken, storage, cryptoStore)

Creates a new matrix client
Parameters:
Name Type Description
homeserverUrl string The homeserver's client-server API URL
accessToken string The access token for the homeserver
storage IStorageProvider The storage provider to use. Defaults to MemoryStorageProvider.
cryptoStore ICryptoStorageProvider Optional crypto storage provider to use. If not supplied, end-to-end encryption will not be functional in this client.

View Source MatrixClient.ts, line 2134