croupier 1.0.0 copy "croupier: ^1.0.0" to clipboard
croupier: ^1.0.0 copied to clipboard

outdated

A custom SocketCluster client implementation for Dart and Flutter.

example/croupier_example.dart

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();
}
6
likes
0
points
19
downloads

Publisher

verified publishersamjakob.com

Weekly Downloads

A custom SocketCluster client implementation for Dart and Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta, stream_channel

More

Packages that depend on croupier