Skip to content
pubscout

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.

WASM-ready
$ flutter pub add mqtt5_client
Source repository

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 documented

Alternatives

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.

  • dart_mcp

    A Dart library for building Model Context Protocol (MCP) servers and clients.

  • stream_chat

    Low‑level Dart client for Stream Chat API

  • centrifuge

    Dart client for real‑time communication with Centrifuge/Centrifugo over WebSockets.

Works with

Packages commonly used together with mqtt5_client: ones it builds on, ones built on it, and its own family.