mirror of https://github.com/grpc/grpc-dart.git
First stage of separating Connection from Channel. A Channel manages multiple Connections, and chooses which Connection to send an RPC on. In this change, the Channel still creates a Connection for each RPC. Managing the Connection life-cycle comes in a later change. |
||
|---|---|---|
| .. | ||
| bin | ||
| lib/src | ||
| protos | ||
| tool | ||
| README.md | ||
| pubspec.yaml | ||
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