Whenever your app goes background, the system itself breaks the connection. This happens with all mobile devices like android, iOS or WP, every time the app goes backrougd or screen is locked, the socket connection gets broken.
Therefore we provide connection resiliency, to let you recover your lost conenction. Simlply set the recovery allowance in warpclient before connection. You have to specify for how many seconds you want the server to keep connection alive even when connection has been broken. Then whenever your connection is broken, you will get onConnectDone with Connnectio Error Recoverable result code, there you can call the recoverConnection method to recover the lost connection.
But you must remember you won't be able to recover connection that have been lost for longer duration. You will need to connect again to server.