diff --git a/README.markdown b/README.markdown index e496947..0e6bb90 100644 --- a/README.markdown +++ b/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, ...) ------------------------------------------ diff --git a/package.json b/package.json index 7d4ed10..07ca245 100644 --- a/package.json +++ b/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"