How to responsively monitor connect status

This library is really great. After the first successful connection, can you monitor the connection status for example when the connection is disconnected, report the log?

Edited by Aly