tree: db1b6cabb2f1585fca1d36aa0503e133427ca43a [path history] [tgz]
  1. bin/
  2. lib/
  3. protos/
  4. tool/
  5. pubspec.yaml
  6. README.md
grpc/example/metadata/README.md

Description

The metadata server and client demonstrate how to handle custom metadata, cancellation, and timeouts in Dart gRPC.

See the definition of the metadata service in protos/metadata.proto.

Run the sample code

To compile and run the example, assuming you are in the root of the metadata folder, i.e., .../example/metadata/, first get the dependencies by running:

$ pub get

Then, to run the server:

$ dart bin/server.dart

Likewise, to run the client:

$ dart bin/client.dart