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 is trying to reconnect to Sails... Even after disabling socket.io #3580
Comments
The 404 is coming from a client-side socket attempting to connect to the server, which isn't accepting socket connections (because you turned the hook off). You need to remove the |
Did you delete the sails.io.js in "assets/js/dependencies"? If you want enable these hooks later again, you can generate the sails.io.js file via "sails generate sails.io.js" |
@karsasmus @sgress454 spot on, thanks guys! @tarunjadhwani if you can remember offhand where you found info on disabling the sockets hook, would you mind linking to this issue or writing up a couple of sentences about the solution there? (e.g. as comment on SO question or PR to sails-docs) It'd be a big help to other folks who might run into this in the future. Thanks! |
Thanks for posting, @tarunjadhwani. I'm a repo bot-- nice to meet you! The issue queue in this repo is for verified bugs with documented features. Unfortunately, we can't leave some other types of issues marked as "open". This includes bug reports about undocumented features or unofficial plugins, as well as feature requests, questions, and commentary about the core framework. Please review our contribution guide for details. If you're here looking for help and can't find it, visit StackOverflow, our Google Group or our chat room. But please do not let this disrupt future conversation in this issue! I am only marking it as "closed" to keep organized. Thanks so much for your help!
|
@mikermcneil Sure I'll do that. Thanks @sgress454 @karsasmus |
I'm using the latest version of sails 0.12.1. I've added these lines in .sailsrc to disable socket.io:
But we I see in network, I get a 404 error as socket is still trying to connect to https://abcdemo.com/socket.io/?__sails_io_sdk_version=0.…owser&__sails_io_sdk_language=javascript&EIO=3&transport=polling&t=LBjxAme
The text was updated successfully, but these errors were encountered: