FLUTTER ECOSYSTEM

flutter_client_sse

Dart package to help consume SSE API. It consumes server sent events by returning parsed model of the event, id, and the data

Latest version
2.0.3
30-day downloads
49.8K
Likes
110
Pub points
150

Package Overview

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

Overview

A Dart package designed to simplify consumption of Server-Sent Events (SSE) APIs in Flutter applications. It streams event data from a server, parsing each event into structured components such as the event type, ID, and payload. Ideal for real-time updates like live notifications, stock prices, or chat messages, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package abstracts low-level HTTP handling, providing a clean interface for developers to react to incoming events.

Use cases
  • Real-time notifications
  • Live data streaming
  • Chat applications
  • Stock price updates
  • Status monitoring
  • Event-driven UIs
Key features
  • Parses event ID, type, and data
  • Supports cross-platform deployment
  • Stream-based event handling
  • Simple API integration
  • Automatic reconnection attempts
  • Model-based response parsing
Suitable for
  • Real-time app development
  • Backend-to-frontend event communication
  • Apps requiring live updates
  • Developers using SSE APIs
  • Cross-platform projects with live data
Considerations
  • Requires server-side SSE support
  • Limited to one-way server-to-client communication
  • May need custom error handling
  • Not suitable for bidirectional communication
  • Depends on stable network connection
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_client_sse

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.