-
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
Socket.IO does not intercept first client file request #66
Comments
I'm not sure if this is entirely related, but I just had to do a patch on my socket.io fork to prevent it from setting the request to null in client._onClose so I could pass a request through the Connect app. This feels like a hack, but along with stopping the unsetting of this.request, I added removeAllEventListeners before AddEventListener to deal with memory issues on the now persistent request. https://github.com/KevinNuut/Socket.IO-node/commit/4b4cda2b2f0819a1c65b9710f6679092b2f0694b |
It looks like Socket.IO fails to intercept the first request for the client files when it is added as a listener after another app.
so assuming that
this will serve successfully:
but this will result in a 404 for the first request only, and serve successfully on subsequent requests:
The text was updated successfully, but these errors were encountered: