FLUTTER ECOSYSTEM

eventsource

A client and server implementation of Server-Sent Events.

Latest version
0.4.0
30-day downloads
823
Likes
30
Pub points
120

Package Overview

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

Overview

A Dart package providing client and server implementations for Server-Sent Events (SSE), enabling real-time, one-way communication from server to client. It supports streaming events over HTTP, making it ideal for live updates, notifications, and data feeds. The package is compatible across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. It follows the SSE standard with support for event IDs, retry intervals, and custom event types. The implementation is lightweight and integrates smoothly into Flutter and Dart applications.

Use cases
  • Live notifications
  • Real-time data streaming
  • Server-side event broadcasting
  • Status updates in web apps
  • Interactive dashboards
  • Log streaming
Key features
  • Full SSE protocol support
  • Cross-platform compatibility
  • Event ID and retry handling
  • Custom event type support
  • Lightweight and efficient
  • Easy integration with Flutter
Suitable for
  • Real-time app features
  • Backend services needing push capabilities
  • Apps requiring low-latency updates
  • Web and mobile apps with live content
  • Developers using Dart/Flutter for full-stack apps
Considerations
  • Not suitable for bidirectional communication
  • Requires a compatible server implementation
  • Limited to server-to-client streaming
  • May need additional setup for authentication
  • Best suited for high-frequency, low-latency updates
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add eventsource

Categories

Dependencies

Dependency list 5 items

Source repository

Related projects

No data available yet.