Hi all,
My application disconnect when user refreshes the page, this works
fine in Chrome , Firefox.
They are using socket, so its fine.. the only way I get ie7 8 9 to
disconnect is using flashsocket but I don't want to use (no reason
really) but I can't because the disconnect doesn't fire if using xhr-
polling or jsonp-polling..
I have set 'sync disconnect on unload' : true but even with
that doesn't fire on those browser.. anyone know how to fix this
issue?
socket.o client version is: Socket.IO.min.js build:0.9.11
and latest
socket.io server
getsocketHost : function(){
// connect to the server and return the instance
if(typeof io !== 'undefined'){
this.client = new io.connect(/*window.location.hostname*/
this.options.host , {
port : this.options.port,
'sync disconnect on unload' : true,
reconnect : false
});
// initiate the client
this.initiateClient();
// return instance if needed
return this.client;
}
this.alertBox( null , 'Couldn\'t connect to the server!.');
},
any pointers?