I wrote a MUC web client using strophe.js and jQuery, and I'm trying to send an inaccessible presence in the room and disable the user in jquery to unload the event for the window. If the user moves or closes the browser, they must be exited from the MUC.
I tested the code that I run in this case through logging out on my page, so I'm sure the stanza is correct. I think strophe is having trouble sending the stanza if the browser window closes. Is there any workaround? I also tried onbeforeunload (I know that it is not fully cross browser compatible), but this does not work either.
Any advice is greatly appreciated!
Thanks, John
jquery xmpp strophe
user645313
source share