Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Nowicki committed Oct 26, 2019
1 parent 2a4c077 commit 851a1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ Emitted on `Ping` instance on error. Usually it catches networking errors, e.x.
```js
const { Ping } = require('agentslug');

const ping = new Ping({ token: 'TOKEN'});
const pingInstance = new Ping({ token: 'TOKEN'});

ping.on('error', (err) => {
pingInstance.on('error', (err) => {
logger.error('Ping error', err);
});
pingInstance.on('sent', () => {
Expand Down

0 comments on commit 851a1a7

Please sign in to comment.