grpc-dart icon indicating copy to clipboard operation
grpc-dart copied to clipboard

Can I use my gRPC client in offline mod?

Open ghost opened this issue 3 years ago • 0 comments

I want to use the same implementation of gRPC for my local enviroment. That means that I don't want to start a server to be able to call functions. Yes, it may seems odd, but I think it's a really important feature.

Versions:

protobuf: ^2.0.1
grpc: ^3.0.2

For simplicity, let's say that we are using yours example hello-world, here want I want accomplish:

final offlineClient = OfflineGreeterClient();
offlineClient.sayHello(HelloRequest(name: "Dynamic"));

ghost avatar May 23 '22 15:05 ghost