Skip to content

Instantly share code, notes, and snippets.

@clonn
Created December 6, 2012 17:19
Show Gist options
  • Save clonn/4226234 to your computer and use it in GitHub Desktop.
Save clonn/4226234 to your computer and use it in GitHub Desktop.
response a http flush data on node.js
var http = require('http')
http.createServer(function (req, res) {
(function () {
res.write('hello world \n');
setTimeout(arguments.callee, 500);
})();
}).listen(3000, '127.0.0.1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment