-
Notifications
You must be signed in to change notification settings - Fork 233
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 404 (Not Found) #129
Comments
I experienced a similar problem when trying to integrate socket.io by itself (without btford.socket-io). In my index.html I changed the file path from:
to
As the documentation suggests. I haven't integrated btford.socket-io into my project just yet so this may not answer your problem because the included javascript file is different from the ones downloaded via NPM. |
Here is a possible answer: i.e on your server.js side: Also you may need on your client.js side: |
i have the same issue. |
@DevChrisDev Did you solve this problem?I am getting same error... |
Hey,
I'm trying to use angular-socket-io in my project that uses
grunt serve
command to run theGruntfile.js
. Here's what I have done:index.html
pagebtford.socket-io
in myapp.module
atapp.js
fileSocket.js
file which is located in same folder thanapp.js
:app.factory('Socket', function (socketFactory) { return socketFactory(); });
Yet I get following error:
GET http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=1448710127650-0 404 (Not Found)
Problem is very obvious. It simply can't find socket.io library. I have installed socket.io via npm. Is it somehow possible to tell angular-socket-io module the location of socket.io that was downloaded via npm?
The text was updated successfully, but these errors were encountered: