Hello. I have a simple socket client connecting to a RPi with a socket listening in a Python script. When I leave my phone alone, eventually the socket disconnects (I log it in the Python script). This is not the same as the screen turning off. I'm unsure what is happening in my B4Xpages app at that moment and how I can tell if I have been disconnected or not. It's just so I can show the appropriate re-connect page when the app resumes. Where do I log the "event" so I can take appropriate action when I wake the phone up some time later?