(Ping timeout: 240 seconds)
("Textual IRC Client: www.textualapp.com")
if I have a very long JSON object (an array of objects) to return as a response to request, how should I go about returning this?
the JSON object is basically an array of objects that has to be constructed at the time of the request (since certain fields depend on the current state)
so should I call res.write() for each item in the array during iteration, or for every 50 or so items, or is there a better way of doing it altogether?