Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaboc/dart_grpc_examples
Simple examples of gRPC in dart
https://github.com/kaboc/dart_grpc_examples
dart examples grpc grpc-dart
Last synced: 3 months ago
JSON representation
Simple examples of gRPC in dart
- Host: GitHub
- URL: https://github.com/kaboc/dart_grpc_examples
- Owner: kaboc
- License: mit
- Created: 2019-12-14T10:44:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T12:13:06.000Z (over 1 year ago)
- Last Synced: 2023-08-19T13:29:28.628Z (over 1 year ago)
- Topics: dart, examples, grpc, grpc-dart
- Language: Dart
- Homepage:
- Size: 253 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple examples of how to use [grpc-dart](https://github.com/grpc/grpc-dart)
* [unary_greet](./unary_greet)
* An example of Unary RPCs similar to the official [helloworld](https://github.com/grpc/grpc-dart/tree/master/example/helloworld) but with more info exchanged
![Screencast of unary_greet](./doc/images/unary_greet.gif)* [bidi_calc](./bidi_calc)
* An example of Bidirectional streaming RPCs
![Screencast of bidi_calc](./doc/images/bidi_calc.gif)* [bidi_chat](./bidi_chat)
* An example of broadcast from a server to multiple clients by Bidirectional streaming RPCs
* A nickname needs to be provided when you run bin/client.dart.
![Screencast of bidi_chat](./doc/images/bidi_chat.gif)* [web](./web)
* An example of unary_greet using gRPC-Web via grpc-dart.
* A proxy to a server is necessary. See [README](./web/README.md) of the sample.
![Screencast of web](./doc/images/web.gif)## Related articles
* [DartでgRPCを使う](https://qiita.com/kabochapo/items/6848457ea7a966baf957)
* Refer to this post for detailed explanations (Japanese).