-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed namespace authorization should fire 'connect_failed', not 'error' event #524
Comments
+1 |
2 similar comments
+1 |
+1 |
If you omit the message string it will fire "connect_failed" cb(null, false); => fires "connect_failed" |
Why not update the document to mention this behavior? If you omit the message string it will fire "connect_failed" cb(null, false); => fires "connect_failed" |
Furthermore, if you use one of the predefined "reasons" you will get cb("unauthorized") -> "connect_failed" (Note that you don't need to Read more here: On Tue, 19 Jun 2012 23:47:05 -0700, peica wrote:
|
Documentation says:
"Failed authorizations are handled a bit differently than global authorization requests. Instead of emitting an error event we emit a connect_failed event."
But it fires the 'error' event.
I have written a small testcase for this:
My socket.io is v0.8.4
The text was updated successfully, but these errors were encountered: