Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track some specific request using ClientCall #700

Open
VolodiaHunkalo opened this issue Apr 19, 2024 · 3 comments
Open

Track some specific request using ClientCall #700

VolodiaHunkalo opened this issue Apr 19, 2024 · 3 comments

Comments

@VolodiaHunkalo
Copy link

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

@mosuem
Copy link
Contributor

mosuem commented Jun 12, 2024

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

@VolodiaHunkalo
Copy link
Author

@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

@VolodiaHunkalo
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants