Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated readme

  • Loading branch information...
commit 8506ca6863fd1172c139ed016042b8988fc53a82 1 parent 6515ec2
@DamonOehlman authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.md
View
13 README.md
@@ -26,7 +26,18 @@ No in the above configuration, the collector will happily run up the default age
The simplest way to do this is through using the [Connect](http://senchalabs.github.com/connect) middleware that is included in the voyeur package:
-To be completed
+If for instance you are using express, you could do something like the following:
+
+```js
+var app = express.createServer();
+
+app.configure(function() {
+ app.use(express.static(__dirname + '/public'));
+ app.use(collector.json(collector.db))
+});
+```
+
+By default this will expose a `/samples` route that will respond to both request for samples in the last 30 seconds (configurable) and also samples after a certain tick count using the `/samples/123456789` route.
## Advanced Usage
Please sign in to comment.
Something went wrong with that request. Please try again.