Strophe sending double request on page unload
问题 I have written an XMPP client with jQuery+Strophe. It all works well (1-on-1, presence, MUC, etc) and is contained within a jQuery-plugin. However, when the page unloads, it sends 2 final requests with the same rid. It only recently became a problem when I started working on session attachment. Here is an example of the Firebug console: Here, I just logged in and immediately refreshed the page. The first post you see is the initial presence stanza after the login. After that request, a new