Permalink
Browse files

support legacy readable / writable properties for 0.8 Stream.prototyp…

…e.pipe
  • Loading branch information...
1 parent 7557a40 commit 25ac3538f567666edfabd9f8dae8ae89079c5331 @Raynos Raynos committed Jan 8, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 duplex.js
View
@@ -11,6 +11,8 @@ function duplex(client, channel, options) {
read.write = write.write
read.end = write.end
+ read.writable = true
+ read.readable = true
reemit(write, read, ["error", "drain", "finish", "pipe"])

0 comments on commit 25ac353

Please sign in to comment.