hi ,
i have a grpc client program, which reconnects automatically every time there is a server restart. I understand grpc has an in build backoff algorithm that connects automatically.
But i have a use case where when the server disconnection happens and the when the client connects back to the server i would like to do a replay of messages for the client/server to be in sync.
To do that i need to know everytime the server disconnection happens?
is there a way i could do this ?
I am using grpc golang.
conn, err := grpc.Dial(serverIp+":"+ServerPort, timeout, grpc.WithBlock(), grpc.WithInsecure())
Any help is really appreciated.