grpc-dart/example
Aran Donohue 6dfb4b43f3
fix: Updates the grpc-web example to avoid dart:html (#748)
* update: Migrate off legacy JS/HTML apis

* update: use dart.library.js_interop in place of dart.library.html

* update: dart format xhr_transport.dart and update dart sdk to v3.4.0 in workflows

* update: use if instead of switch case in xhr_transport.dart

* update: upgrade web package to v1.1.0

* refactor: use Uint8List for sending data over XHR rather than Int8List

* refactor: eta-reduction of call to request.setRequestHeader

* Convert grpc-web example to package:web

---------

Co-authored-by: minoic <minoic2020@gmail.com>
Co-authored-by: Moritz <mosum@google.com>
2025-02-21 14:11:03 +01:00
..
googleapis Regenerate protobuf types with new protobuf version (#658) 2023-08-16 05:33:31 -07:00
grpc-web fix: Updates the grpc-web example to avoid dart:html (#748) 2025-02-21 14:11:03 +01:00
helloworld Remove dependency on `package:archive` (#707) 2024-05-06 15:25:06 +02:00
metadata Regenerate protobuf types with new protobuf version (#658) 2023-08-16 05:33:31 -07:00
route_guide Regenerate protobuf types with new protobuf version (#658) 2023-08-16 05:33:31 -07:00
README.md Typo Correction in README.md (#695) 2024-04-15 09:53:00 +02:00

README.md

Four code examples are available:

  1. helloworld: A demonstration of using the Dart gRPC library to perform unary RPCs.

  2. googleapis: A demonstration of using the Dart gRPC library to communicate with Google APIs.

  3. metadata: A demonstration of how to handle custom metadata, cancellation, and timeouts in Dart gRPC.

  4. route_guide: A demonstration of how to perform unary, client streaming, server streaming and full duplex RPCs.

For a complete, step-wise working example, see the Dart gRPC Quick Start.