Permalink
Browse files

updated example to not close single echoStream

  • Loading branch information...
Raynos committed Aug 6, 2012
1 parent 98ee32f commit 36b1857848cb5cf635d5de388aed496740d78aab
Showing with 5 additions and 2 deletions.
  1. +5 −2 example/simple/server.js
View
@@ -20,8 +20,11 @@ var boot = require("../..")
var sock = boot(function (stream) {
// stream from MuxDemux with the meta property set
if (stream.meta === "one") {
- stream.on("data", console.log.bind(console))
- stream.pipe(echoStream).pipe(stream)
+
+ stream.on("data", console.log.bind(console, "on-server"))
+ stream.pipe(echoStream, {
+ end: false
+ }).pipe(stream)
}
})

0 comments on commit 36b1857

Please sign in to comment.