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

0.7.6 does not work well with Opera

Open BrazilianJoe opened this issue 15 years ago • 4 comments

I am testing with all current browsers. Opera behaves as if it is connecting, raising the 'connect' event on the client-side. When I send a message to the server (triggered by the connect even), the server never acknowledges it. My code works fine with the other browsers. The transport is xhr-polling.

Opera Version: 11.11 for Mac

BrazilianJoe avatar Jul 07 '11 10:07 BrazilianJoe

This man speaks the truth - 0.7.x doesn't work with my Opera 11.50 for Linux :(

5HT2A avatar Jul 07 '11 20:07 5HT2A

i have the same problem, 0.7.6, Opera 11.50 for Win7, dragonfly:

Uncaught exception: TypeError: Cannot convert 'document.body' to object

Error thrown at line 2713, column 4 in <anonymous function: WebSocket.__initialize>() in http://test.beta.pl/js/socketIo.1.js:
    document.body.appendChild(container);
called from line 2426, column 6 in <anonymous function: Flashsocket.check>(socket) in http://test.beta.pl/js/socketIo.1.js:
    WebSocket.__initialize();
called from line 1575, column 6 in <anonymous function: Socket.prototype.getTransport>(override) in http://test.beta.pl/js/socketIo.1.js:
    if (io.Transport[transport]
called from line 1608, column 6 in <anonymous function: Socket.prototype.connect>(sid, heartbeat, close, transports) in http://test.beta.pl/js/socketIo.1.js:
    self.transport = self.getTransport();
called from line 1523, column 8 in complete(data) in http://test.beta.pl/js/socketIo.1.js:
    fn.apply(null, data.split(':'));
called via Function.prototype.apply() from line 1543, column 8 in <anonymous function: Socket.prototype.handshake>(data) in http://test.beta.pl/js/socketIo.1.js:
    complete(data);
called from line 1, column 0 in http://n1.beta.pl:8080/socket.io/1/?t=1310111946648&jsonp=0:
    io.j[0]("19409431852061091448:15:25:websocket,flashsocket,htmlfile,xhr-polling,jsonp-polling");

digitalStyx avatar Jul 08 '11 08:07 digitalStyx

same thing, server 0.7.7, (minified) client 0.7.4, Opera 11.50 OSX

Uncaught exception: TypeError: Cannot convert 'document.body' to object

Error thrown at line 2, column 66863 in <anonymous function: WebSocket.__initialize>() in http://uranruda.ru:1000/socket.io/socket.io.js:
    c.id="webSocketFlash",b.appendChild(c),document.body.appendChild(b),swfobject.embedSWF(WEB_SOCKET_SWF_LOCATION,"webSocketFlash","1","1","10.0.0",null,null,{hasPriority:!0,swliveconnect:!0,allowScriptAccess:"always"},null,function(b){b.success||a.error("[WebSocket] swfobject.embedSWF failed")})
called from line 2, column 41208 in <anonymous function: c.check>(a) in http://uranruda.ru:1000/socket.io/socket.io.js:
    b&&!c.loaded&&(typeof WEB_SOCKET_SWF_LOCATION=="undefined"&&(WEB_SOCKET_SWF_LOCATION=e.join("/")),WebSocket.__initialize(),c.loaded=!0);
called from line 2, column 25770 in <anonymous function: c.prototype.getTransport>(a) in http://uranruda.ru:1000/socket.io/socket.io.js:
    if(b.Transport[f]&&b.Transport[f].check(this)&&(!this.isXDomain()||b.Transport[f].xdomainCheck()))
called from line 2, column 26378 in h(a) in http://uranruda.ru:1000/socket.io/socket.io.js:
    c.transport=c.getTransport(a);
called from line 2, column 26893 in <anonymous function: c.prototype.connect>(d, e, f, g) in http://uranruda.ru:1000/socket.io/socket.io.js:
    c.sessionid=d,c.closeTimeout=f*1e3,c.heartbeatTimeout=e*1e3,c.transports=b.util.intersect(g.split(","),c.options.transports),h(),c.once("connect",function(){clearTimeout(c.connectTimeoutTimer),a&&typeof a=="function"&&a()})
called from line 2, column 24368 in f(b) in http://uranruda.ru:1000/socket.io/socket.io.js:
    b instanceof Error?c.onError(b.message):a.apply(null,b.split(":"))
called via Function.prototype.apply() from line 2, column 25156 in <anonymous function: c.prototype.handshake>(a) in http://uranruda.ru:1000/socket.io/socket.io.js:
    f(a),i.parentNode.removeChild(i)
called from line 1, column 0 in http://uranruda.ru:1000/socket.io/1/?t=1310815463985&jsonp=0:
    io.j[0]("1464090481638844981:15:25:websocket,flashsocket,htmlfile,xhr-polling,jsonp-polling");

afanasy avatar Jul 16 '11 11:07 afanasy

Duplicate of https://github.com/LearnBoost/socket.io/issues/274.

But I would love to have your test cases, as I'm unable to reproduce it

3rd-Eden avatar Jul 18 '11 19:07 3rd-Eden