Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeshelf_web_socket

Shelf handler that upgrades HTTP to WebSocket and provides a WebSocketChannel per connection.

pub.devRemove
ws

Cross‑platform WebSocket client with automatic reconnection and metrics

pub.devRemove
ScoresHealth80 (best)50
Maintenance54 (best)1
Quality100 (best)91
Popularity94 (best)55
Community80 (best)58
Compatibility8585
UsageDownloads (30 days)14M (best)2.6k
Likes158 (best)87
Pub points160 / 160 (best)140 / 160
GitHub stars1k (best)49
MaintenanceLatest release3.0.0, 2 years ago (best)1.0.0, 3 years ago
Major versions in 12 months00
Contributors60 (best)4
Publishertools.dart.devplugfox.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies31 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Easy integration with existing Shelf middleware
  • Type-safe callback signature
  • Supports pingInterval and protocol negotiation
  • No additional dependencies beyond shelf and web_socket_channel
  • Cross‑platform support (VM and JS)
  • Automatic reconnection with backoff
  • Stream of state changes and messages
  • Configurable options per platform
Weaknesses
  • Breaking change in 3.0.0 requires callback signature update
  • Limited to Shelf; not a full-featured WebSocket server framework
  • No built-in authentication or routing for WebSocket paths
  • No built‑in authentication or subprotocol helpers
  • Limited to WebSocket; no HTTP or REST support
  • No code generation or declarative API
Warnings
  • Quiet but busy
None
shelf_web_socket vs ws: which Flutter package should you use? | pubscout