Skip to content
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

sample code won't run due to incorrect inclusion of socket.io #1

Open
ErnstEeldert opened this issue Sep 14, 2015 · 1 comment
Open

Comments

@ErnstEeldert
Copy link

I am trying to get this up and running, but after building (with mock feed enabled), the page fails to render with the following message on the js console:

"[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (socket.io.js, line 0)"

This also seems to happen on your version deployed to heroku. I am on Safari 8.0.8 on Yosemite.

Thanks!

@onefunman
Copy link

I had sufferd same problem. but I solved it!

you have to change code in 'Server.js'

app.listen(app.get('port'), function () { -----> http.listen(app.get('port'), function () {

This is detail solve http://stackoverflow.com/questions/24172909/socket-io-connection-reverts-to-polling-never-fires-the-connection-handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants