title: How to keep websocket alive while application is in background
body: <p>I have integrated AWS over websocket in my application so that my application get notified whenever actual state of my resource at AWS IoT changed. It is working fine till the application is in foreground.</p>
  
  <p>But when i moved my application to background state , websocket get closed and app didn't get resource change notification. Can anybody let me know how can i keep the websocket alive while application is in background state.</p>