var http = require('http'); http.createServer(function (request, response) { response.write('Hello'); setTimeout(function(){ response.end('world'); }, 5000); }).listen(3001);
this code will not display 'Hello' right away. it will display 'Hello world' after 5 seconds. changing it to response.write('Hello\n') will display it right away. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en