当检查 instanceof stream.Writable 时,Duplex 的实例现在返回 true。
instanceof stream.Writable
Duplex
true
新增于: v0.9.4
双工流是同时实现 Readable 和 Writable 接口的流。
Readable
Writable
Duplex 流的示例包括:
Instances of Duplex now return true when checking instanceof stream.Writable.
Added in: v0.9.4
Duplex streams are streams that implement both the Readable and Writable interfaces.
Examples of Duplex streams include: