Say you have a socket.io/node.js chatroom. If it's open on a bunch of computers, all seems to work fine indefinitely.
But say you've connected on a phone or tablet, and walk away for a few minutes. Your mobile device has auto-locked and when you reopen your browser, the new messages you see on your PC aren't there and the messages you try and send don't go through.
Is there any well known solution or workaround to making this work well for mobile users?
What exactly is happening? (Socket closed by timeout of mobile os? (would HTTP vs TCP make a difference?))
Thanks for any insights!