resilient_mqtt 0.0.1
resilient_mqtt: ^0.0.1 copied to clipboard
A resilience layer for mqtt_client: exponential backoff with jitter, connection state as a Stream, automatic re-subscribe and typed decoders. Pure Dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add resilient_mqttWith Flutter:
$ flutter pub add resilient_mqttThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
resilient_mqtt: ^0.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:resilient_mqtt/resilient_mqtt.dart';