Skip to content

Commit

Permalink
tweak readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nomilous committed Nov 11, 2017
1 parent 24e4552 commit bffeb62
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,19 @@ startle.onStop((opts, done) => {
done();
});

startle.on('ping', function (timbre) {

startle.increment('counter_name');
startle.gauge('gauge_name', 0.5);

startle.on('ping', function (timbre) {
startle.send('pong', {assentionRate: 777});
});
```

```javascript
// anywhere in the remote script
const {increment, gauge} = require('startle');

increment('counter_name');
gauge('gauge_name', 3.14);
```




Expand Down

0 comments on commit bffeb62

Please sign in to comment.