Node.js connect create dispatcher for http

Description

Node.js connect create dispatcher for http




var connect = require('connect'), http = require('http');

//Create a connect dispatcher
var app = connect();

//Register with http
http.createServer(app).listen(3000);//from www.  j a v  a  2  s .c  om
console.log('server running on port 3000');



PreviousNext

Related