Rosbridge - isConnected() ?
Hi,
I'm working with Rosbridge at the moment, and trying to determine from the ROS side (server) whether the websocket connection is ok. Is there a isConnected() or ping() type function that will enable me to determine the connection status? I need a test that determines the current connection reliability for use with wireless/3G/4G connected ROS devices, which will frequently drop messages without disconnecting from the socket. (They stay 'sort of' connected).
I'm trying to do something like:
if (isConnected()) { - Send messages from subscribed topics - } else { - Save the messages, instead - }
I tried using a service, but it seems I'm using rosbridge a little bit backwards; since a service initiated from the web-side wouldn't help.
'My apologies in advance for being completely wrong about everything ever.'