Thursday 26 November 2015

Why does the express app starts the server using http instead of express

If it's a stupid question, let me know. It's possible I have the concept wrong.So I was reading a book, and it starts the app something like thisapp = require('express')();app.listen(port);Now I generated the express app and in bin/www, it uses http to create server and start listening.I thought a framework was used to hide away all this low level http stuff (among other things).Any reason it uses http core module rather than express' listen function (which, obviously, under the hood would use http)?

Submitted November 26, 2015 at 07:06PM by siamthailand

No comments:

Post a Comment