I have an app that is refreshing data where I get a message from a server every second. I want to set up a way to detect if a message hasn't arrived in over a minute.
My thought process was to have a timer stop and restart when a message comes in, and if the timer reaches 60 seconds I display a message showing connection is interrupted.
Any ideas or thoughts on how I could accomplish this?