socket.IO-objc icon indicating copy to clipboard operation
socket.IO-objc copied to clipboard

namespace errors(namely, handshake) not handled

Open shekhei opened this issue 12 years ago • 0 comments

My server is rejecting a connection to a room in the handshake.

I am expecting it to call maybe either onError or disconnectwitherror or something, but nothing was called, but, "error" was logged in my logger.

After some digging, found this really really interesting line here...

            case 7: {
                DEBUGLOG(@"error");
                break;
            }
// and then some code to just set the packet to nil and end of function...

when socket.io fails to do a handshake, it will send this error thing, with connect_failed as the event name(if i dont remmber wrongly), so for my case, the handshake error didnt get handled, because it just breaks and then does nothing. As for all other sorts of error, it will also just end here... More code has to be added here to handle these...

shekhei avatar Apr 23 '13 09:04 shekhei