The first portion of my response is static, I would like to go head and send that portion of the page and send the rest after it has been compiled. Is this even possible using node.js?
Asked
Active
Viewed 86 times
1
-
1Related http://stackoverflow.com/questions/6233562/node-js-chunked – Andrew Ty. May 14 '13 at 03:07
1 Answers
6
Yes, absolutely. You can do whatever you want.
Just .write()
your data to the response object. It won't disconnect until you do a .end()
. As a bonus, Node will set up chunked encoding for you automatically. There is nothing more you have to do.

Brad
- 159,648
- 54
- 349
- 530