web3mq 0.1.3-dev.2 copy "web3mq: ^0.1.3-dev.2" to clipboard
web3mq: ^0.1.3-dev.2 copied to clipboard

outdated

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"), 'session key');
  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
0
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

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

More

Packages that depend on web3mq