WiFlyHQ: A new library for the WiFly RN-XV

Is there a way to check if the server to which the Wifly has connected has dropped the (TCP) connection?

If I connect to a server and then close the socket (at the server side) then the Wifly still sees it as an active connection.

wifly.isConnected() and wifly.available()
only seem to update if I manually close the connection.