I’‘m using Smack for some inter-process communication and have a question/observation about the XMPPConnection class. The instantiation performs the server connection after which I can add connectionListeners. If the connection dies, I can’‘t just call a XMPPConnection.connect method, it doesn’‘t exist. I have to create a new XMPPConnection object. Then somehow, I have to reconnect the old connection’‘s connectionlisteners to the new connection. Is this correct? or is there a XMPPConnection.connect method, the online API (1.4.1) docs don’'t show one.
Please consider adding a connect method to XMPPConnection for reconnection after disconnect.
Also, I don’‘t see how a ConnectionEstablishedListener does any good when you can’'t attach a listener until after the XMPPConnection instantiation completes with a successful connection. Am I missing something here?
Thanks for your time.