Thank you all for your suggestions. I would indeed be interested in having an unpipe() method added to Stream...
In the meantime, I have published a module that provides such functionality: https://npmjs.org/package/pup Le mardi 18 septembre 2012 23:28:04 UTC+2, PierreC a écrit : > > All, > > There is currently no standard way to remove a pipe set between 2 streams. > Is there any (simple) solution/module to achieve that? > > The problem I am running into is as follow: > > streamA.pipe( streamB ) > > > At some point, I need to change the target of streamA from streamB to > streamC but without killing streamA (it is an expensive to setup > connection). Something along the lines of: > > streamA.unpipe( streamB ) > streamA.pipe( streamC ) > > > I have tried hacking the Stream class but without any satisfactory > result... Any idea? > > Cheers, > > Pierre > -- 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
