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.
Even if the server was not reachable, it is being handled as handshake error, i suggest fixing it by adding a new error type, namely SocketIOServerCouldNotBeReached
the easiest thing would be to add the error.code to the errorInfo then you can handle the "handshake error" differently depending on the errorcode in your application.
well i suppose that can be done too, but that wouldnt be a very accurate representation of the true error wouldnt it? And this is a very general error, that is triggered by NSURLConnection. Of course, arguable since the only thing NSURLConnection is doing currently is for handshake?
I actually forked and implemented something similar to what I suggested and it seems to work, so what is your call for this? Since i think this really does cause certain problems in the long run, like for my case, if handshake failed I unauthenticate the app and if it cannot be reached it will just run offline mode
Edit: I meant if this is not fixed it can e a problem for some people in the long run
line 611 onwards socketio.m
Even if the server was not reachable, it is being handled as handshake error, i suggest fixing it by adding a new error type, namely
SocketIOServerCouldNotBeReached
and perhaps something along this line
but of course written properly with maybe a mapping of error with the error code or something
The text was updated successfully, but these errors were encountered: