You could check the property ROSConnection.HasConnectionError: it will be true until until a message has been received. (ROS_TCP_Endpoint always sends an empty message as soon as a connection is established, to confirm the connection is working.)
This logic is used by the hud to show red arrows.
This is a feature of the ROS-TCP-Connector, not the endpoint. It’s present in the current main branch, version 0.5.0. I suggest you update, there have been a lot of performance and reliability improvements since January.