Coding method:
You can use the HttpClient library to make the request and then send data to the cloud. But when the internet connection drops, it will be useless. The device won’t be able to send the data to the cloud.
No coding method:
You can use an external app/tool to check device status and send the data to the cloud. Like a tasker, automate, Node-RED, etc…
You’d need to send “Online” to the virtual pin every 1 second (using a timer, and a Blynk.virtualWrite command). If the server doesn’t receive a value on this virtual pin for 5 seconds it should show as offline.