egensolve_realtime_flutter 0.3.0 copy "egensolve_realtime_flutter: ^0.3.0" to clipboard
egensolve_realtime_flutter: ^0.3.0 copied to clipboard

Flutter lifecycle integration for the public ERS realtime client.

ERS Flutter client #

This package integrates the framework-neutral ERS realtime client with Flutter application lifecycle signals. It provides session-scoped client ownership, optional connectivity hints, and wall-clock and timer scheduler adapters.

import 'package:egensolve_realtime/lifecycle.dart';
import 'package:egensolve_realtime_flutter/egensolve_realtime_flutter.dart';

final owner = FlutterRealtimeClientOwner(
  clientFactory: (signals) => RealtimeLifecycleClient(
    bootstrap: bootstrap,
    transport: transport,
    authCallback: authCallback,
    clock: const SystemClock(),
    scheduler: const TimerScheduler(),
    recoveryCoordinator: recoveryCoordinator,
    signals: signals,
  ),
);

owner.start();

Create one owner per authenticated application session. Dispose it at session end. Connectivity signals are hints only; they never replace a real transport attempt.

License #

MIT. See LICENSE.

0
likes
140
points
71
downloads

Documentation

API reference

Publisher

verified publisheregensolve.com

Weekly Downloads

Flutter lifecycle integration for the public ERS realtime client.

Homepage

License

MIT (license)

Dependencies

egensolve_realtime, flutter

More

Packages that depend on egensolve_realtime_flutter