dart_nats 0.6.5 copy "dart_nats: ^0.6.5" to clipboard
dart_nats: ^0.6.5 copied to clipboard

A Dart client for the NATS messaging system. Design to use with Dart and flutter.

example/main.dart

import 'package:dart_nats/dart_nats.dart';

void main() async {
  var client = Client();
  await client.connect(Uri.parse('ws://localhost:80'));
  var sub = client.sub('subject1');
  client.pubString('subject1', 'message1');
  var data = await sub.stream.first;

  print(data.string);
  client.unSub(sub);
  await client.close();
}
33
likes
140
points
814
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart client for the NATS messaging system. Design to use with Dart and flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

base32, ed25519_edwards, mutex, web_socket_channel

More

Packages that depend on dart_nats