I'm using xiff_3_1_0 to create an XMPP chat client connected to an openfire server.
Everything is working fine so far, except that I could not find a good way to implement the keep-alive signals correctly. There is a function named sendKeepAlive
- in class XMPPConnection
, but it seems that this relies on the ping-extension being supported by the server.
Actually, there is a TODO in the API documentation stating:
Sends ping to server in order to keep the connection alive, in case the server has not indicated that it would not support it. TODO: Whitespace keepalive if ping not supported...
Is there an elegant way to send a whitespace keep-alive message using xiff_3_1_0?
Alternatively, is there a way to enable the ping extension on an openfire server?