Replies: 1 comment
-
No, the only way is to setup a streaming request and when that stream closes you know you disconnected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any built-in functionality for me to listen for an event when the client disconnects?
From the server-side, I don't care if a client disconnects. But on the client side, I would like to be able to respond to disconnections, attempt to reconnect, and re-launch the stream that I have going during the lifetime of the client.
(I'm still somewhat new to Rust, so I'm sorry if I've missed anything obvious!)
Beta Was this translation helpful? Give feedback.
All reactions