搜索插件、代码仓与 APP 分类

插件详情v3.1.0

launchdarkly_event_source_client

用于 dart 和 flutter 的服务器发送事件 (SSE) 客户端实现。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
11.4万
喜欢数
3
Pub 分数
150

安装插件

flutter pub add launchdarkly_event_source_client

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Dart 和 Flutter 实现的服务器发送事件(SSE)客户端,支持服务器到客户端的实时通信。该包通过高效处理跨多个平台的事件流,实现与 LaunchDarkly 特性标志和配置服务的无缝集成。支持自动重连、事件解析和流管理,非常适合需要实时更新而无需轮询的应用程序。专为生产环境中的可靠性和性能设计。

适合场景

  • 实时功能标志更新
  • 实时配置同步
  • 流式分析事件
  • 基于服务器事件的动态UI更新
  • 监控应用状态变化

主要特点

  • 支持自动重连
  • 处理事件流解析
  • 跨平台兼容性
  • 强大的错误处理
  • 轻便高效
  • 可配置的重试逻辑

适合对象

  • 需要实时数据的Flutter应用
  • 使用 LaunchDarkly SDK 的应用程序
  • 需要低延迟服务器更新的项目
  • 开发响应式用户界面的开发者
  • 实施具有实时更新功能标志的团队

使用建议

  • 需要稳定的网络连接
  • 在移动设备上可能消耗更多电池
  • 不适用于双向通信
  • 仅限服务器到客户端的流式传输
  • 取决于 LaunchDarkly 后端可用性

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。