Skip to content

Instantly share code, notes, and snippets.

@brigand

brigand/.js Secret

Created October 27, 2016 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brigand/c24ae111dcd8f5e64f99e30a01c1bd3f to your computer and use it in GitHub Desktop.
Save brigand/c24ae111dcd8f5e64f99e30a01c1bd3f to your computer and use it in GitHub Desktop.
var app = require('express')();
app.get('/', (req, res) => {
setTimeout(() => {
res.write('hello\n');
}, 1000);
setTimeout(() => {
res.end();
}, 2000);
});
app.listen(1234)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment