ResponseStream connect(Stream request, {CallOptions? options})
I have sync bi-directional streaming from gRPC, how to know exact moment when connect is alive to ensure that I could send requests, or dequeue pending requests, as this stream live only 15 sec in terms of battery saving, so I should reconnect a lot, but not knowing state of this rpc it’s impossible to know moment when Stream request could accept request
Tried interceptors + sending ping requests, but they’re not reliable as for example user change Wi-Fi to Cellular, API change, but protocol doesn’t emit any error, so it’s impossible to track health of connect which is sync and could not be awaited
Volodia Hunkalo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.