Open ip opened 7 years ago
I think this is already supported by virtue of this line.
const duplex = duplexify(encoder, decoder, {
objectMode: true,
writableObjectMode: true,
readableObjectMode: true,
})
duplex.writableObjectMode // is undefined
duplex.readableObjectMode // is undefined
Should respect
readableObjectMode
andwritableObjectMode
options:https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_object_mode_duplex_streams