You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
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...
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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...
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...
The text was updated successfully, but these errors were encountered: