Connection state callback interface Used to notify when the connection state changes.
Callback method for connection state