Skip to content

Commit

Permalink
document stream cancel function (#1081)
Browse files Browse the repository at this point in the history
Co-authored-by: Eryu Xia <[email protected]>
  • Loading branch information
RohitRox and sampajano authored Oct 8, 2021
1 parent 41f7cc7 commit 541e3ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ stream.on('status', function(status) {
stream.on('end', function(end) {
// stream end signal
});

// to close the stream
stream.cancel()
```

For an in-depth tutorial, see [this
Expand Down

0 comments on commit 541e3ae

Please sign in to comment.