write-stream was checking the number of input channels before allowing
a write, so it would always just return immediately when you tried to write to
an output-only stream. It should be checking the number of output channels
instead. I'm pretty sure this was just a copy/paste typo.
write-stream
was checking the number of input channels before allowing a write, so it would always just return immediately when you tried to write to an output-only stream. It should be checking the number of output channels instead. I'm pretty sure this was just a copy/paste typo.