arunoda/node-simple-xmpp — pull request #17 by Daniel15 (2013-04-03 12:36:13+00:00)
Title: Use whitespace keepalives instead of presence stanzas

Sending stanzas too frequently may cause issues with servers rate limiting the user (see issue #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).