Skip to main content

connectmq 1.0.0 copy "connectmq: ^1.0.0" to clipboard
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.

1.0.0 #

  • Initial release.
  • ConnectMQClient.connect() for the free public broker broker.connectmq.com and private ConnectMQ brokers over TCP, TLS, WebSocket and secure WebSocket.
  • publish() with automatic payload encoding (String, bytes, JSON) and QoS 1/2 acknowledgement, clearRetained().
  • subscribe() returning a Stream<ConnectMQMessage> that never loses retained messages and unsubscribes when the listener cancels; waitForMessage().
  • Helpers brokerUrl(), topicPrefix(), topicMatches(), brokerInfo and testBroker().
  • Web support (Flutter web, dart2js, dart2wasm) via MqttBrowserClient (ws and wss).
  • connectmq command line tool: test, info, prefix, sub, pub.
0
likes
160
points
463
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage

Topics

#mqtt #iot #pubsub #websocket #messaging

License

MIT (license)

Dependencies

args, mqtt_client, typed_data

More

Packages that depend on connectmq