FLUTTER ECOSYSTEM

web_socket_client

A simple WebSocket client for Dart which includes automatic reconnection logic.

Latest version
0.2.1
30-day downloads
106K
Likes
216
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A lightweight WebSocket client for Dart that enables real-time communication between clients and servers. It features built-in automatic reconnection logic, ensuring stable connections even during network interruptions. Designed for simplicity and reliability, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for applications requiring persistent, bidirectional data streams such as chat apps, live updates, or collaborative tools.

Use cases
  • Real-time chat applications
  • Live data streaming
  • Collaborative editing tools
  • IoT device communication
  • Notification systems
Key features
  • Automatic reconnection
  • Cross-platform support
  • Simple API
  • Built-in error handling
  • Lightweight and efficient
Suitable for
  • Developers building real-time features
  • Apps needing persistent connections
  • Projects on multiple platforms
  • Teams prioritizing connection stability
Considerations
  • Requires a compatible WebSocket server
  • May need custom retry logic for specific use cases
  • Limited to WebSocket protocol only
  • Not suitable for non-real-time communication
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add web_socket_client

Categories

Dependencies

Dependency list 3 items

Source repository

Related projects

Rankings