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
  • 18,135
  • 25
  • 89
  • 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
  • 159,648
  • 54
  • 349
  • 530