Browse files

documented bounce() returning a stream

  • Loading branch information...
1 parent aef769c commit 086f137f0aa7de414dfe8ac193f49fca5481bde0 @substack committed Oct 24, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 README.markdown
  2. +1 −1 package.json
View
3 README.markdown
@@ -93,6 +93,9 @@ If you pass in an emitter you'll get the connection object on `"drop"` events so
you can handle these yourself by writing an error message to the stream. If you
don't pass in an `opts.emitter`, the connection will be `.destroy()`ed.
+`bounce()` returns the stream object that it's using. This is useful if you pass
+in a port so you can `.on('error', fn)` to detect connection errors.
+
bounce(port, ...), bounce(host, port, ...)
------------------------------------------
View
2 package.json
@@ -1,7 +1,7 @@
{
"name" : "bouncy",
"description" : "Bounce HTTP requests around for a load balancer or http host router completely transparently",
- "version" : "1.0.0",
+ "version" : "1.0.1",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/bouncy.git"

0 comments on commit 086f137

Please sign in to comment.