Am Montag, 4. November 2013 13:32:21 UTC+1 schrieb mscdex:
>
> On Monday, November 4, 2013 3:32:55 AM UTC-5, greelgorke wrote:
>>
>> as far as i know, there is no support for multiple parallel pipes in 
>> core. also there is no support for reseting a stream, in fact streams are 
>> (not only in node) one-shots. anyway there are user land streams, that 
>> support multipiping. for reseting the stream you have to buffer all the 
>> content, which is not what streams should do. another possible solution 
>> might be to create a new readable when a second pipe appeared and pipe the 
>> new readable to it.
>>
>>
> Huh? You can definitely pipe a Readable stream to multiple Writable 
> streams at least in node v0.10.x or newer.
>
 
yes, sure, since pipe does nothing special but to wire up the events. but 
there is no guarantee that all streams will get the same data, if piping is 
not happend in the same execution block. i guess you can pause the readable 
first.

-- 
-- 
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.

Reply via email to