grpc / grpc-dart

The Dart language implementation of gRPC.
https://pub.dev/packages/grpc
Apache License 2.0
861 stars 271 forks source link

Is there a way to check the connection status? #474

Open steeling opened 3 years ago

steeling commented 3 years ago

For e.g. in Go, you first dial out the call, and pass that to the gRPC service client. If the dial fails you know immediately that you were unable to connect.

In dart, I create a grpc client, and even with no internet connection i get no errors. Is there a way to call client.checkConnection() or something would be nice to have

phamnhuvu-dev commented 3 years ago

May be related to https://github.com/grpc/grpc-dart/issues/477