Strophe javascript prevent disconnection on some delay

Posted by patrikas on Stack Overflow See other posts from Stack Overflow or by patrikas
Published on 2010-03-15T17:47:23Z Indexed on 2010/03/15 17:49 UTC
Read the original article Hit count: 263

Hello, I am developing javascript XMPP application which uses Strophe library to connect to Jabber server. I need to engage the thread for about 5-10 seconds when Strophe connects to the server. Thread is engaged by running java applet and after it releases the thread it goes back to handle XMPP events, however at the moment I cannot manage to do that - trying to use a connection after delay gives me 404 HTTP error (this is sent by XMPP-BOSHS service straight after Strophe sends POST request with XMPP message to it). I was trying to 'pause' a connection with Strophe's connection.pause and then resume it - didn't work. Would sending some raw content to the server, maybe if it's possible telling it that client's gonna be unresponsive for a short time work ? Are there any other solutions ?

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about xmpp