dart_nats 0.1.0+4 copy "dart_nats: ^0.1.0+4" to clipboard
dart_nats: ^0.1.0+4 copied to clipboard

outdated

A Dart client for the NATS messaging system. It's simple. Design to use with flutter easy to write no need to deal with complex asynchronous.

example/main.dart

import 'package:dart_nats/dart_nats.dart';

void main() async {
  var client = Client();
  client.connect('localhost');
  var sub = client.sub('subject1');
  await Future.delayed(Duration(seconds: 1));
  client.pub('subject1', 'message1');
  var msg = await sub.stream.first;

  print(msg);
  client.unSub(sub);
  client.close();
}
37
likes
0
points
1.29k
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart client for the NATS messaging system. It's simple. Design to use with flutter easy to write no need to deal with complex asynchronous.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_nats