1

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?

Jamey McElveen
  • 17,907
  • 25
  • 87
  • 129

1 Answers1

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
  • 152,561
  • 47
  • 332
  • 504