Wraps a duplex object stream and returns an event emitter