Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemqtt_client

A Dart MQTT client supporting TCP, WebSocket, secure connections and all QoS levels.

pub.devRemove
web_socket_client

A simple WebSocket client for Dart with automatic reconnection logic.

pub.devRemove
ScoresHealth91 (best)68
Maintenance87 (best)12
Quality100100
Popularity89 (best)86
Community8080
Compatibility100100
UsageDownloads (30 days)139k (best)112k
Likes551 (best)216
Pub points160 / 160160 / 160
GitHub stars585 (best)177
MaintenanceLatest release10.14.0, 4 weeks ago (best)0.2.1, 2 years ago
Major versions in 12 months00
Contributors24 (best)9
Publisherdarticulate.comfelangel.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies73 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortMediumLow
JudgementStrengths
  • Supports TCP, secure TCP, WebSocket and secure WebSocket
  • Handles all QoS levels and keep‑alive automatically
  • Batch and multi‑unsubscriptions, making it efficient for many topics
  • Cross‑platform support (Android, iOS, web, desktop, server)
  • Built-in automatic reconnection with customizable backoff strategies.
  • Exposes real-time connection state stream and queryable connection status.
  • Wasm compatibility and support for web platform.
Weaknesses
  • No native support for MQTT v5 (requires separate package)
  • Requires platform permissions for network access on mobile
  • Documentation is concise but may need digging for advanced use
  • Calling close() permanently terminates reconnection attempts, requiring a new instance to reconnect.
  • Limited to basic WebSocket communication.
WarningsNoneNone
mqtt_client vs web_socket_client: which Flutter package should you use? | pubscout