your producer could be a readable stream itself (like the fs ReadStream), or the consumer could be a Writable itself.
if you really need a separate stream to connect non-stream producer and consumer look at the stream.Transform or it's default implementation PassThrough. http://nodejs.org/api/stream.html#stream_class_stream_passthrough Am Freitag, 30. August 2013 21:55:02 UTC+2 schrieb Alexey Petrushin: > > I need to stream data from Producer to Consumer. > Producer require Writable Stream to write to it and Consumer require > Readable Stream to read from it. > > Is there some library or example how to do it? There's Duplex Stream, but > it's does different thing. > Thanks. > -- -- 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 --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
