[jdev] Presence - how often?
Yann Leboulanger
asterix at lagaule.org
Thu Dec 11 01:33:27 CST 2008
Adi wrote:
> How often should a client send xmpp presence to a server? I assume most
> XMPP servers usually have a timeout for client idle and the presence
> should be sent at a value that is less than this timeout to be optimal.
> But if you are talking to some third party xmpp server, you wouldnt know
> their client idle timeout setting, so how do we optimize sending
> presence? -
There is XMPP Ping for this: XEP-0199
We send such a ping after 55sec of inactivity and wait for the answer
for 20 seconds before assuming we are disconnected
--
Yann
More information about the JDev
mailing list