25 May 2010 09:21
How to close "connecting" session on Mac OSX
Hi,
How can I close "connecting" session on Mac OSX? I'm trying to make a
reconnect function than tries to reconnect
Code:
===========
channel.on({event:'connector', state:'disconnected'},
function(e){
reconnect(); //will loop
});
function reconnect(){
//if im connecting , stop connecting <-- how to do?
XMPP.up(jid, function(){ //this works fine in windows, but OSX seems
to ignore multiple XMPP.up()?
clearInterval(interval );
return;
});
var interval = setInterval(function(){
reconnect();
}, 2000);
}
Thanks :D
--
--
(Continue reading)
RSS Feed