Reputation: 943
I'm currently serving data in two ways but am considering a third:
Given that I'm using node.js, socket.io, and express, what server-side technology would best fit my needs? Does this approach make sense?
Upvotes: 4
Views: 1294
Reputation: 23060
You can do this with express (or more accurately the underlying functionality build into the http server). You can make repeated calls to request.write and call request.end once you're done sending data. Alternatively, if you have a stream, you can pipe that to the response.
Upvotes: 1