mqtt5_client
5.4.1, released yesterday by darticulate.com
A server and browser based MQTT Version 5 client for Dart supporting TCP and WebSockets.
What it does
Provides an MQTT 5 client implementation for Dart supporting subscription and publishing at all QoS levels, authentication, keep alive, and synchronous connections on both servers and browsers.
AI-written summary of version 5.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to connect a Dart or Flutter application to an MQTT 5 broker via TCP or WebSockets.
- You require browser-based or server-based MQTT 5 communication.
Skip it when
- You require fully enforced MQTT 5 flow control or subscription identifiers which are not yet implemented.
- You only need standard HTTP REST or WebSocket communication without the MQTT protocol.
Strengths
- Supports both server and browser environments via normal/secure TCP and WebSockets.
- Handles connection protocols, keep-alive mechanisms, and QoS message exchanges automatically.
- Supports the full MQTT Version 5 message set including user properties and authentication.
Weaknesses
- Some MQTT 5 protocol features are not yet fully implemented (such as flow control, subscription identifiers, and shared subscriptions).
- Receive maximum and topic alias maximum values received in connect acknowledge are not enforced.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
not documented
not documentedAlternatives
Packages that do the same job and could replace mqtt5_client.
- mqtt_client
A Dart MQTT client supporting TCP, WebSocket, secure connections and all QoS levels.
91Compare - dart_mcp
A Dart library for building Model Context Protocol (MCP) servers and clients.
87Compare - stream_chat
Low‑level Dart client for Stream Chat API
91Compare - centrifuge
Dart client for real‑time communication with Centrifuge/Centrifugo over WebSockets.
80Compare
Works with
Packages commonly used together with mqtt5_client: ones it builds on, ones built on it, and its own family.
- cryptomqtt5_client depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- webmqtt5_client depends on itLightweight bindings for browser APIs via JS interop
- typed_datamqtt5_client depends on itUtility functions and classes for easier work with dart:typed_data lists.
- charactersmqtt5_client depends on itUnicode and grapheme cluster aware string manipulation operations for Dart.
- universal_htmlmqtt5_client depends on itCross‑platform replacement for dart:html with DOM parsing, XML support, and EventSource.
- event_busmqtt5_client depends on itA lightweight event bus using Dart Streams for publish/subscribe communication
- appwriteBuilt on mqtt5_clientFlutter SDK for the self-hosted Appwrite backend server