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

outdated

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('localhost');
  var sub = client.sub('subject1');
  client.pubString('subject1', 'message1');
  var data = await sub.stream!.first;

  print(data.string);
  client.unSub(sub);
  client.close();
}
32
likes
0
pub points
85%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_nats