1 var http = require('http');
2 var port = parseInt(process.env.PORT, 10) || 8000;
3 var defaultLag = parseInt(process.argv[2], 10) || 100;
5 http.createServer(function(req, res) {
6 res.writeHead(200, { 'content-type': 'text/plain',
7 'content-length': '2' });
9 var lag = parseInt(req.url.split("/").pop(), 10) || defaultLag;
10 setTimeout(function() {
13 }).listen(port, 'localhost');