powered by Jive Software

XIFF library

Hi,

I have a single problem, when I connect to server chat, after 6 or 7 minutes, the chat is disconnect from server and I don’t know why. Do someone have the solution?

Use the sendKeepAlive method of the XMPPConnection class to keep the connection open.

If there’s no activity after a few minutes, the connection will close on its own.

You can setup a timer to call this method every minute or so if you want.

How I can to call this method (sendKeepAlive), in what part of my code.

hello, already solved the problem, thank for your help.