How to check current status of client connection via command line

I have a remote IoT device that uses Mender with a touchscreen. I want to check the status of the Mender client periodically to show an indicator on my touchscreen for debugging assistance.

Is there a CLI command I can use to check the client’s status and see if it is connected to the Mender server?

The Mender client (the mender binary) is not constantly connected to the server, that would be mender-connect, which provides the Remote Terminal feature. Unfortunately there is no command to check its status, that information is only available on the server. You could check netstat -t and see if anyone is connected to, but this is obviously not robust.