simple-xmpp / node-simple-xmpp

Simple High Level NodeJS XMPP Client
301 stars 90 forks source link

Use whitespace keepalives instead of presence stanzas #17

Closed Daniel15 closed 11 years ago

Daniel15 commented 11 years ago

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).

arunoda commented 11 years ago

Please consider #21