socket.io-client icon indicating copy to clipboard operation
socket.io-client copied to clipboard

Uncaught exception: TypeError: 'c' is not a constructor

Open nookiepl opened this issue 15 years ago • 2 comments

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.

nookiepl avatar Aug 29 '11 08:08 nookiepl

Fixed in my fork: https://github.com/einaros/socket.io-client

einaros avatar Aug 29 '11 09:08 einaros

Yup. Fixed. Thanks. :)

nookiepl avatar Aug 29 '11 11:08 nookiepl