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

Provides a modern way of implementing Web3MQ APIs. Web3MQ is the fastest and most scalable social Layer 1 & messaging network.

example/web3mq_example.dart

import 'package:web3mq/web3mq.dart';

Future<void> main() async {
  final client = Web3MQClient('api-key');

  final user = User("userId", DID("type", "value"), "sessionKey");
  await client.connectUser(user);

  client.notificationStream.listen((event) {
    // handle with the notifications.
  });

  // send message
  client.sendText('text', 'topic');

  client.newMessageStream.listen((event) {
    // handle the new message
  });
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Provides a modern way of implementing Web3MQ APIs. Web3MQ is the fastest and most scalable social Layer 1 & messaging network.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

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

More

Packages that depend on web3mq