The Stream interface has been with us since node v0.4.0 landed. It's probably time to add support for it on the Message object. Would be awesome. Thanks in advance!
Change `EventEmitter` to `Stream` for ".pipe()" and other Stream goodies
@aredridel @TooTallNate can you guys comment what changes with this update? Why use Stream instead of EventEmitter. Trying to get myself more familiar with the internals of NodeJS. Would appreciate any feedback.
Streams are EventEmitters -- but they bring along new methods, pipe() among them. So it's all moved just one level down the prototype chain, and gets a couple things for free that way.
@hamin: The Stream class inherits from EventEmitter, so this provides all the same functionality as before. However, the Stream class also exposes pipe(), and possibly in the future other helper functions to deal with generic streams in node. You can see it's source here: https://github.com/joyent/node/blob/master/lib/stream.js
Aww you beat me @aredridel, lol
ah thanks @aredridel