Skip to content
pubscout

dart_meteor

4.1.0, released 3 months ago by an unverified publisher

Connects Flutter apps to a Meteor backend over DDP for methods and subscriptions.

WASM-ready
$ flutter pub add dart_meteor
Source repository

What it does

It provides a client to connect Flutter applications to Meteor backends via DDP over WebSockets. It supports method calls, reactive data collections exposed as streams, authentication flows, and automatic reconnection with backoff.

AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter application with a Meteor backend.
  • You need reactive streams for Meteor collections and user authentication status.

Skip it when

  • Your backend does not use Meteor or the DDP protocol.
  • You require an integrated client-side minimongo database.

Strengths

  • Seamless integration with StreamBuilder and FutureBuilder.
  • Automatic reconnection with exponential backoff and session re-login.
  • Built-in EJSON DateTime conversion support.

Weaknesses

  • No built-in minimongo cache on the client side.
  • In-flight method calls are not automatically retried after a disconnection.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

final meteor = MeteorClient.connect(url: 'https://yourdomain.com');

StreamBuilder<DdpConnectionStatus>(
  stream: meteor.status(),
  builder: (context, snapshot) {
    if (!snapshot.hasData) return const Text('Status: ---');
    return Text('Status: ${snapshot.data}');
  },
);

Works with

Packages commonly used together with dart_meteor: ones it builds on, ones built on it, and its own family.