I want to set ping interval that server know that our client still exist.
I set Timeout in openfire server with 10 seconds…
then i continuesly sendPing to server that told him the connection is still exist…
this is my code :
AndroidConnectionConfiguration config = new AndroidConnectionConfiguration(
XMPP_HOST, XMPP_PORT, JID_DOMAIN);
mConnection = new XMPPConnection(config);
am i doing wrong?? i want to automatically sent ping to server in interval 5 second…
But i’m always getting connection close from server after 10 seconds.