matrix_sdk 0.12.2 matrix_sdk: ^0.12.2 copied to clipboard
A Dart implementation of the federated communications protocol, Matrix.
import 'package:matrix_sdk/matrix_sdk.dart';
void main() async {
final homeserver = Homeserver(Uri.parse('https://pattle.im'));
final user = await homeserver.login(Username('pat'), 'pattle');
await for(SyncState syncState in user.sync()) {
await for (final room in user.rooms.all()) {
// Do something
}
}
}