Socket.op IE7 8 9 onunload disconnect..

67 views
Skip to first unread message

utan

unread,
Apr 20, 2013, 1:26:11 AM4/20/13
to Socket.IO
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?

s...@cooki.me

unread,
Apr 20, 2013, 1:26:23 AM4/20/13
to sock...@googlegroups.com
Dear Friends & Clients,

be advised that im currently on vacation and back only 30th of April. Thank you


utan

unread,
Apr 20, 2013, 2:54:02 PM4/20/13
to Socket.IO
does that means I will not get any answer from anyone else?
Reply all
Reply to author
Forward
0 new messages