On Mon, Dec 24, 2012 at 2:41 AM, Norman Khine <[email protected]> wrote:
> hello i have this code: > > (code snipped) > basically when you access the site, this returns the json output read from > the google fusion table, but i am not sure how to go about in getting the > matadata first from the GOOGLE_DRIVE_PATH and then merging this with the > data received from GOOGLE_PATH on the fly. Is this possible with modules > like https://github.com/fent/node-kat or do i need to redesign my > approach? i would like to check if the modifiedDate from the Google Fusion > Table has changed and if it has changed to pull the data and create the > chapters.json file. What do you mean by "merge"? If you really mean concatenate, and just want to stream both pieces to the client, one after the other, in the same response, then you can make the request for the second piece when the response for the first piece ends, and end the response to your client only when that second response ends. If you really do mean merge, in some sense, then it seems likely that you'd need to do some buffering and analysis of your streams, which could get a lot more complicated. -- Martin Cooper any advice much appreciated. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
