matrix_sdk 0.3.7 matrix_sdk: ^0.3.7 copied to clipboard
A Dart implementation of the federated communications protocol, Matrix.
Matrix Dart SDK #
A Dart implementation of the federated communications protocol, Matrix.
Usage #
var store = SqfliteStore();
var homeserver = Homeserver(Uri.parse("https://matrix.org"));
var user = await homeserver.login(Username("pit"), "pattle", store: store);
await for (bool success in user.sync()) {
await for (var room in user.rooms.all()) {
// Do something
}
}
This example uses the SqfliteStore
, which is a seperate dependency and only works on Flutter.
Note that using a store is optional.