I have implemented a gRPC server application and multiple clients can connect to it and call RPCs. In the cases of client disconnection or client restarts, I would want to know which client got disconnected so that I can do some cleanup corresponding to that client.
Similarly, if the server goes down, how can the client get notified?
Does gRPC c++ stack provides a notification/callback to the application? If not, what is the best way to handle the connection termination on either side?