btford / btford/angular-socket-io

socket.io 404 (Not Found)

Open
#129 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Hey,

I'm trying to use angular-socket-io in my project that uses `grunt serve` command to run the `Gruntfile.js`. Here's what I have done:
1. Downloaded angular-socket-io and socket.io-client via bower
2. Added angular-socket-io and socket.io-client libraries in my `index.html` page
3. Added `btford.socket-io` in my `app.module` at `app.js` file
4. Added following code to my `Socket.js` file which is located in same folder than `app.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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.