Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support objectMode for one side only #14

Open
ip opened this issue Aug 6, 2017 · 2 comments
Open

Support objectMode for one side only #14

ip opened this issue Aug 6, 2017 · 2 comments

Comments

@ip
Copy link

ip commented Aug 6, 2017

Should respect readableObjectMode and writableObjectMode options:

https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_object_mode_duplex_streams

@IronSavior
Copy link

I think this is already supported by virtue of this line.

@freddi301
Copy link

const duplex = duplexify(encoder, decoder, {
  objectMode: true,
  writableObjectMode: true,
  readableObjectMode: true,
})
duplex.writableObjectMode // is undefined
duplex.readableObjectMode // is undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants