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