Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

namespace errors(namely, handshake) not handled #97

Open
shekhei opened this issue Apr 23, 2013 · 0 comments
Open

namespace errors(namely, handshake) not handled #97

shekhei opened this issue Apr 23, 2013 · 0 comments

Comments

@shekhei
Copy link

shekhei commented Apr 23, 2013

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant