-
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
Reconnect and middleware firing order with non-default namespaces #2343
Comments
|
I see! Well, for once, the behavior of the Second, I think this behavior might be counter intuitive to the end users. Why would the I think that the root of the problem are the inconsistencies between the |
Actually, this is by design. I also don't know the details, but you'd be able to set "global" middleware to
That can happen because |
I'm not sure how useful this |
Maybe separating the Manager In the documentation too, both events are separated, and their differences would be pointed out: https://github.com/socketio/socket.io-client#events |
I think that the point I'm trying to make is, as an end user, I don't really care if the manager can or can't reconnect to the webserver, the only thing I care about is whether or not the socket can reconnect to the namespace |
NAVER - http://www.naver.com/[email protected] 님께 보내신 메일 <Re: [socket.io] Reconnect and middleware firing order with non-default namespaces (#2343)> 이 다음과 같은 이유로 전송 실패했습니다. 받는 사람이 회원님의 메일을 수신차단 하였습니다. |
Closing this, since this is an issue of |
I just finished changing the default namespace
/
in my server to another namespace,/main
and I stumbled upon this problem:Now, if a reconnect happens, the above will happen in the following order:
This is a problem because I need to do some authentication before a user can be reconnected on the main namespace. I think that the ideal output would be:
Without passing through the default namespace at all, or at least firing reconnect after finishing processing the middlewares of the main namespace.
The text was updated successfully, but these errors were encountered: