This may be a very basic question but I simply don't get it. What is the difference between creating an app using Express.js and starting the app listening on port 1234, for example:
var express = require('express');
var app = express();
//app.configure, app.use etc
app.listen(1234);
and adding an http server:
var express = require('express');
var http = require('http');
var app = express();
var server = http.createServer(app);
//app.configure, app.use etc
server.listen(1234);
What's the difference?
If I navigate to http://localhost:1234
, thus I get the same output.