Skip to content

Commit

Permalink
Adds error event handler in streams example. cc: @sbehrends
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondmorris committed Jan 25, 2015
1 parent e11f002 commit 1cd9f67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ client.stream('statuses/filter', {track: 'twitter'}, function(stream){
stream.on('data', function(tweet) {
console.log(tweet.text);
});

stream.on('error', function(error) {
console.log(error);
});
});
```

0 comments on commit 1cd9f67

Please sign in to comment.