grpc-dart/example/metadata
Brett Morgan 6c0f61aaf6 Updating for Protobuf 0.13 (#190) 2019-06-14 09:24:05 +02:00
..
bin Remove unnecessary 'new' and 'const' keywords. (#186) 2019-06-04 11:31:01 -07:00
lib/src Updating for Protobuf 0.13 (#190) 2019-06-14 09:24:05 +02:00
protos Custom metadata and call cancellation. (#22) 2017-07-07 14:31:36 +02:00
tool Custom metadata and call cancellation. (#22) 2017-07-07 14:31:36 +02:00
README.md Custom metadata and call cancellation. (#22) 2017-07-07 14:31:36 +02:00
pubspec.yaml Updating for Protobuf 0.13 (#190) 2019-06-14 09:24:05 +02:00

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