matrix_sdk 0.22.1 matrix_sdk: ^0.22.1 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',
store: MemoryStore(),
);
await for (SyncState _ in user.sync()) {
for (Room room in await user.rooms.get()) {
print(room.name);
}
}
}