I am developing a GCM Cloud Connection Server (XMPP). I am using the suggested Smack API 4.0.6 library.
How should I implement each method defined by org.jivesoftware.smack.ConnectionListener
void authenticated(XMPPConnection connection)
void connected(XMPPConnection connection)
void connectionClosed()
void connectionClosedOnError(Exception e)
void reconnectingIn(int seconds)
void reconnectionFailed(Exception e)
void reconnectionSuccessful()
The only examples I can find simply log out messages.
Whats the correct way to reconnect "cleanly" when my server looses its upstream connection?