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

Track some specific request using ClientCall

Open vhunkalo opened this issue 1 year ago • 3 comments

Is it possible to track some specific request? I have grpc stream and I need to track onReady, onClosed etc.

vhunkalo avatar Apr 19 '24 16:04 vhunkalo

Could you elaborate on the motivation of this, and provide some code example?

mosuem avatar Jun 12 '24 14:06 mosuem

@mosuem if i have bi-directional stream, how could i know that stream is alive and i could send requests. Furthermore, in terms of battery saving for example for messing apps - stream will be forcefully closed and need to be reconnected. Also switching from Wi-Fi to cellular cause connection close which is not seen in errors etc but stream is dead

So that's the use cases where it's essential to track this specific call status or have listener to make health check

vhunkalo avatar Jun 16 '24 21:06 vhunkalo

@mosuem any answers regarding re-connection/health checking ?

vhunkalo avatar Jul 22 '24 12:07 vhunkalo