You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
I've created a simple XMPP bot that connects to XMPP and sits quietly watching for status changes. Sometimes, instead of correct presence information, I get this:
//make the connection livesetInterval(function(){conn.send(newxmpp.Element('presence'));},1000*10)
Why is this in the code? It looks a bit odd - I've sniffed traffic from my XMPP client and looked at other examples and I haven't seen any others that send a <presence /> stanza every 10 seconds (my client only seems to do it when I change status).
Daniel15
added a commit
to Daniel15/node-simple-xmpp
that referenced
this issue
Apr 3, 2013
Sending <presence> stanzas too frequently may cause issues with servers rate limiting the user (see issue simple-xmpp#15). This switches to using whitespace for keepalives instead.
From XMPP specs:
One common method for checking the TCP connection is to send a space
character (U+0020) between XML stanzas, which is allowed for XML
streams as described under Section 11.7; the sending of such a space
character is properly called a "whitespace keepalive" (the term
"whitespace ping" is often used, despite the fact that it is not a
ping since no "pong" is possible).
I've created a simple XMPP bot that connects to XMPP and sits quietly watching for status changes. Sometimes, instead of correct presence information, I get this:
How do I solve this?
The text was updated successfully, but these errors were encountered: