pkyeck / socket.IO-objc

socket.io v0.7.2 — 0.9.x for iOS and OS X
MIT License
1.97k stars 441 forks source link

warn - websocket connection invalid #94

Open prajapatimoti opened 11 years ago

prajapatimoti commented 11 years ago

I am developing an iphone application. when I try to connect to my node server with socket.io app, I am getting error on server like:

debug - client authorized info - handshake authorized 16734788022033017528 debug - setting request GET /socket.io/1/websocket/16734788022033017528 debug - set heartbeat interval for client 16734788022033017528 warn - websocket connection invalid info - transport end debug - set close timeout for client 16734788022033017528 debug - cleared close timeout for client 16734788022033017528 debug - cleared heartbeat interval for client 16734788022033017528 debug - client authorized for

While error on xcode console is:

didReceiveResponse() 200 connectionDidFinishLoading() 16734788022033017528:15:25:websocket,htmlfile,xhr-polling,jsonp-polling sid: 16734788022033017528 heartbeatTimeout: 22.000000 transports: ( websocket, htmlfile, "xhr-polling", "jsonp-polling" ) websocket supported -> using it now onDisconnect() disconnectedWithError : Error Domain=SocketIOError Code=-4 "The operation couldn’t be completed. (SocketIOError error -4.)"

I am using Node version : 0.10.3 and Socket.io version : 0.9.4.

Is this an issue, or am I doing something wrong?

l0c0luke commented 11 years ago

on the device that is creating the invalid connection, goto http://websocketstest.com/ and see what comes up. I was trying o use port 80 and found that ATT customers here inthe states could not accept websockets on port 80.

hboylan commented 10 years ago

@prajapatimoti Same here. You figure this out?