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