Async stream - leave connection open

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I would like my app to have a constantly open connection to my server. I would be using AsyncStreams for this.

What would be the best practice as to avoid the Android OS would decide to kill the thread with the open socket ?

And also: how to restart the connection in case would have decided to close this thread ?

Thanks !
 
Top