connectmq 1.0.0
connectmq: ^1.0.0 copied to clipboard
Publish and subscribe on the free public MQTT broker broker.connectmq.com in one line. TCP, TLS and WebSocket client for Dart and Flutter, plus a CLI.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate connectmqUse it
The package has the following executables:
$ connectmq
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add connectmqWith Flutter:
$ flutter pub add connectmqThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
connectmq: ^1.0.0Alternatively, 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:connectmq/connectmq.dart';