web3mq 0.1.0-dev.1 copy "web3mq: ^0.1.0-dev.1" to clipboard
web3mq: ^0.1.0-dev.1 copied to clipboard

outdated

Provides a modern way of implementing Web3MQ APIs.

example/web3mq_example.dart

import 'package:web3mq/src/client.dart';
import 'package:web3mq/src/ws/models/user.dart';

Future<void> main() async {
  final client = Web3MQClient('b67pax5b2wdq');

  await client.connectUser(User(
      "user:7c0b577c0786e51f90522f833bf8ac8749cb32d681e7eccedba1dcc45f9a5173",
      DID("eth",
          "0x7c0b577c0786e51f90522f833bf8ac8749cb32d681e7eccedba1dcc45f9a5173"),
      "0bf8eae8be0e7d364710ad1027598bb273e8122f75d4b70886f6ad855c03a991"));

  client.notificationStream.listen((event) {
    // handle with the notifications.
  });
}
0
likes
0
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

Provides a modern way of implementing Web3MQ APIs.

Homepage

License

unknown (license)

Dependencies

collection, convert, cryptography, dio, drift, equatable, fixnum, flutter, intl, json_annotation, logging, meta, mutex, path, path_provider, pointycastle, protobuf, rxdart, uuid, web_socket_channel

More

Packages that depend on web3mq