Skip to content

Small addition to the Express Readme Part #2846

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Feb 1, 2017

Conversation

H3rby7
Copy link
Contributor

@H3rby7 H3rby7 commented Jan 31, 2017

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

I used the express setup with my latest project and stumbled into an error, that was hard to fix, because it was so small and crucial.
I accidently called app.listen(PORT) instead of server.listen(PORT)
This basically leads to working Express functionality and routes, but the /socket.io route will not be present and thus the GET request for any client willing to connect gets a 404.

New behaviour

I hope this small comment may save another one the four hours I spent on tracing my mistake.

Other information (e.g. related issues)

H3rby7 and others added 2 commits January 31, 2017 15:46
I used the express setup with my latest project and stumbled into an error, that was hard to fix, because it was so small and crucial.  
I accidently called `app.listen(PORT)` instead of `server.listen(PORT)`  
This basically leads to working Express functionality and routes, but the `/socket.io` route will not be present and thus the GET request for any client willing to connect gets a 404.  
I hope this small comment may save another one the four hours I spent on tracing my mistake.
@darrachequesne darrachequesne merged commit e1facd5 into socketio:master Feb 1, 2017
@darrachequesne
Copy link
Member

Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants