2 ms·
> For a simple example, consider an IRC client: it's useless if it drops the connection every time you turn off the screen or switch to another app for too long
by cesarb 7y ago
> For a simple example, consider an IRC client: it's useless if it drops the connection every time you turn off the screen or switch to another app for too long.
I believe the "correct" way to do it would be to have a server in the middle, which keeps the connection alive, buffers the necessary data, and sends a notification to the device when appropriate. That is, unlike a desktop or a laptop, a tablet or smartphone is not designed to be a fully independent device.
- crooked-v 7y ago...and that's the problem. To be less pithy, 'just have a server in the middle' is completely impractical for some things, because that doesn't always exist.