croupier 1.0.1+1
croupier: ^1.0.1+1 copied to clipboard

A custom SocketCluster client implementation for Dart and Flutter.

Croupier #

A custom SocketCluster client implementation for Dart and Flutter.

Run Tests MIT License GitHub issues

Released under an MIT license. Feel free to use or adapt this code as you want, though if you do, please credit me your README or something.

Usage #

A simple usage example:

import 'package:croupier/croupier.dart';

void main() async {
  
  // Create the client.
  var client = SocketClusterClient(
    hostname: 'localhost',
    port: 3000,
    ackTimeout: 500,
  );
  
  // Connect to the server.
  await client.connect();
  
  // Use the client; (invokes 'myProcedure' on the server.)
  var response = await client.invoke('myProcedure');
  print(response);
  
  // Close the client to clean up resources and
  // cleanly disconnect from the server.
  await client.close();
  
}

For more examples, please see the project wiki.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Test #

Unit tests are included.
Run dart pub run test to execute the unit tests.

2
likes
100
pub points
7%
popularity

Publisher

samjakob.com

A custom SocketCluster client implementation for Dart and Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on croupier