-
Notifications
You must be signed in to change notification settings - Fork 435
Description
I am using Bidirectional Stream for sending Audio and other stuff.
Once I login successfully then we initialize the streamer(We initialize the channel and then client)
If I send data using a Bidirectional stream that working fine
Means I use
self.bidiStream?.sendMessage(DialogRequestHandler().createCompositionCreationRequest(), promise: nil)
if I use the app continuously then it's working fine
but if I put the app into the idle mode for more than 10 mins means the app is in the foreground but I am not using it, no action made, After that, I use the App means create any request using the same function
self.bidiStream?.sendMessage(DialogRequestHandler().createCompositionCreationRequest(), promise: nil)
It's giving me an error:-
unavailable (14): The RPC has already completed
and application is getting stuck, I can't use it anymore
Do you have any idea why It's happening?
Even the channel is working fine because I hit ping pong request every 2 sec to check whether the channel working fine or not
and the channel working fine I have checked that.
So Could you help me, how can I get a callback if I receive any error in GRPC So that I can reinitialize the stream?
I am using multiple requests So I need to find a common callback where I can handle GRPC error for all requests.
Thanks !!!