I need to use jsonp-polling for IE, and xhr-polling for Firefox, so I tried to define types of transports on the client side like this:
if (/Firefox[\\
there is a bug in socket.io.client.
so you can not set transports in client...
function Socket (options) { this.options = { port: 80 , secure: false .... }; io.util.merge(this.options, options); .... };
should be io.util.merge(this.options, options,0);....
io.util.merge(this.options, options,0);....