I am trying to build a `grpc` `rpc` which has stream on server side.
The proto is like
rpc xyz (abc) return (stream asd){}
How to build a C++ client to keep listening on the stream even after the `rpc` returns response once.
std::unique_ptr<ClientReader<asd>> reader(stub_->xyz(&context, request));
while (reader->Read(&reply)) {
std::cout<<"Response got from server: " << reply.message() << " " << std::endl;
}
I am able to get reply once but how to keep listening on the same channel even after the response come. I tried introducing `while()` but it closes after raising exception.
The grpc server is written in java.