Search packages, repositories and app categories

Package detailsv3.1.0

launchdarkly_event_source_client

Server-sent events (SSE) client implementation for dart and flutter.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
114K
Likes
3
Pub points
150

Install package

flutter pub add launchdarkly_event_source_client

Package Overview

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

A Dart and Flutter implementation of a Server-Sent Events (SSE) client, enabling real-time communication from servers to clients. This package facilitates seamless integration with LaunchDarkly's feature flag and configuration services by handling event streams efficiently across multiple platforms. It supports automatic reconnection, event parsing, and stream management, making it ideal for applications requiring live updates without polling. Designed for reliability and performance in production environments.

Use cases

  • Real-time feature flag updates
  • Live configuration synchronization
  • Streaming analytics events
  • Dynamic UI updates based on server events
  • Monitoring application state changes

Key features

  • Supports automatic reconnection
  • Handles event stream parsing
  • Cross-platform compatibility
  • Robust error handling
  • Lightweight and efficient
  • Configurable retry logic

Suitable for

  • Flutter apps needing real-time data
  • Applications using LaunchDarkly SDK
  • Projects requiring low-latency server updates
  • Developers building reactive UIs
  • Teams implementing feature flags with live updates

Considerations

  • Requires stable network connection
  • May consume more battery on mobile devices
  • Not suitable for bidirectional communication
  • Limited to server-to-client streaming
  • Dependent on LaunchDarkly backend availability

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

LaunchDarkly Client-side SDK for Flutter

Action Status Pub

LaunchDarkly overview

LaunchDarkly is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!

Twitter Follow

Supported Platforms

See the pubspec.yaml file for Flutter version requirements.

This SDK supports Android, iOS, Linux, macOS, Web, and Windows.

The underlying API support requirements are determined by the native plugins used by the SDK.

These include:

Getting started

Refer to the SDK documentation for instructions on getting started with using the SDK.

Organization

The repository is a monorepo containing the packages required to make the SDK as well as testing and example applications.

Directory Readme Description
.github Contains CI and release process workflows and actions.
packages Contains flutter/dart libraries.
packages/flutter_client_sdk Flutter Client SDK Package which implements the LaunchDarkly client-side SDK for flutter.
packages/common Common Package which contains common code for dart based SDKs. Currently there is only a client-side SDK, but this directory should only contain code tha would apply to both client and server-side SDKs.
packages/client Common Client Package containing code that is specific to client-side SDKs, but not specific to flutter.
packages/event_source_client Event Source Client Package implementing support for SSE.
apps Contains sample and test applications.
apps/sse_contract_test_service SSE Contract Test Service This application is used to test the SSE implementation used by the SDK.
apps/flutter_client_contract_test_service Flutter Client Contract Test Service This application is used to test the functionality of the SDK.
architecture Contains diagrams and other supporting architecture documents.

Learn more

Read our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK or our code-generated API documentation.

Testing

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing

We encourage pull requests and other contributions from the community. Read our contributing guidelines for instructions on how to contribute to this SDK.

About LaunchDarkly

  • LaunchDarkly is a feature management platform. We empower all teams to deliver and control their software. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your end users, such as a group of end users who opt in to a beta tester group, and gather feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of customers, and track the effect that the feature has on key metrics. For instance, how likely is a customer to complete a purchase if they have feature A versus feature B?
    • Turn off a feature that is causing performance problems in production, without needing to re-deploy or even restart the application with a changed configuration file.
    • Grant access to certain features based on end user attributes, like payment plan. (For example, customers on the ‘gold’ plan have access to more features than customers in the ‘silver’ plan).
    • Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read our SDK documentation for a complete list.
  • Explore LaunchDarkly

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.