socket.io-client
socket.io-client copied to clipboard
Uncaught exception: TypeError: 'c' is not a constructor
I'm getting this error on Opera, with 0.8.0 (and dunno if there was same error with older versions)
Uncaught exception: TypeError: 'c' is not a constructor
Error thrown at line 2, column 39792 in <anonymous function: d.prototype.open>() in http://pieklo.wonderlife.pl:8000/socket.io/socket.io.js?v=201108151:
this.websocket=new c(this.prepareUrl()+d);
called from line 2, column 42075 in <anonymous function: c.prototype.open>() in http://pieklo.wonderlife.pl:8000/socket.io/socket.io.js?v=201108151:
b.Transport.websocket.prototype.open.apply(a,c)
called via Function.prototype.apply() from line 2, column 70276 in <anonymous function: WebSocket.__onFlashInitialized>() in http://pieklo.wonderlife.pl:8000/socket.io/socket.io.js?v=201108151:
WebSocket.__tasks[a]();
Unfortunately, Opera falls back to JSONP and JSONP polling doesn't work at all, and I don't know why.
I think all Flash socket browsers are affected. IE falls back to XHR and it's working.
Fixed in my fork: https://github.com/einaros/socket.io-client
Yup. Fixed. Thanks. :)