tcp socket disconnect

Is there any way to tell that an attempted reconnect failed?

Also if we use reconnect=true, and I am disconnected for a while, then reconnect to the internet, will I automatically be reconnected to the XMPP server?  Or does this not work?

Also, if we do set reconnect=false, how will users of the social provider (uProxy) know that we are disconnected?  Right now there is no "onDisconnect" type of event in the social API.