matrix_sdk 0.1.2 copy "matrix_sdk: ^0.1.2" to clipboard
matrix_sdk: ^0.1.2 copied to clipboard

discontinued
outdated

A Dart implementation of the federated communications protocol, Matrix.

example/main.dart

import 'package:matrix_sdk/matrix_sdk.dart';

import 'package:idb_shim/idb_client_native.dart';

void main() async {
  final store = IndexedDbStore(path: '/tmp/matrix.db',
                               idbFactory: idbNativeFactory);
  // Open the store before passing it to the homeserver
  await store.open();

  final hs = Homeserver(Uri.parse("https://matrix.org"), store: store);
  final user = await hs.login(Username("joe"), "badPassword");

  await for (bool succes in user.sync()) {
    if (succes) {
      // Do something
    }
  }
}
11
likes
0
pub points
0%
popularity

Publisher

verified publisherpattle.org

A Dart implementation of the federated communications protocol, Matrix.

Repository
View/report issues

License

unknown (LICENSE)

Dependencies

chopper, http, idb_shim, meta, validators

More

Packages that depend on matrix_sdk