Node.js connect create echo server

Description

Node.js connect create echo server


function echo(req,res,next){
    req.pipe(res);/* w ww . ja va  2s  .co  m*/
}

var connect = require('connect');

connect().use(echo).listen(3000);



PreviousNext

Related