-
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
Problem after updating from 2.0.2 to 2.0.3 with middleware #2971
Comments
@gindu as usual, could you please provide a way to reproduce? Fiddle here: https://github.com/darrachequesne/socket.io-fiddle/tree/issues-2971 |
Only happening once (3hours after updating to 2.0.3 on live site) - reverting directly to 2.0.2. On dev site i can't even reproduce it. So it will be hard to do this in a fiddle. As of the error the "socket.request.res" was probably undefined/null ?
would this work without crashing the live site? |
I have a same issue |
I found that this works. You will have access to your session via |
I found the issue for the crash. On polling socket.request.res is find. On Websocket it's undefined. I have already swapped to express-socket.io-session module. This working without any issue |
@darrachequesne Any possibility on getting a fix on this? We are seeing the same issue |
2.0.4 same issue. |
@ToddAlvord - Todd, you're a lifesaver for that one! |
Thanks, @ghost! Think we may consider to use
with web
|
@ToddAlvord thanks for the solution! Think it could be improved a little:
|
Thanks! Works for me. |
For future readers, the documentation was added here: https://socket.io/docs/v3/middlewares/#Compatibility-with-Express-middleware |
This error occurred the first time after updating from 2.0.2 to 2.0.3 - I really can't figure it out right now.
The text was updated successfully, but these errors were encountered: