Skip to content

v3.4.3: Updated the write getter to return the socket as Writable (#62)

Choose a tag to compare

@github-actions github-actions released this 25 Mar 02:14
· 33 commits to main since this release
439ef32
#### What is this change?

Instead of trying to wrap the tty `ReadStream` with `Writable` and sync
the states, we can just return the `ReadStream` as a `Writable` in the
`write` getter. In this case, when the fd is closed or destroyed, the
`writable` will also be `closed`.

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>