Skip to content

Commit

Permalink
docs: kill method to terminate traceroute
Browse files Browse the repository at this point in the history
  • Loading branch information
gucheen committed Apr 19, 2024
1 parent cbe5651 commit fad1994
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ try {
});

tracer.trace('github.com');

// and you can terminate traceroute by calling `kill` method
setTimeout(() => {
tracer.kill()
}, 5000)
} catch (ex) {
console.log(ex);
}
Expand Down

0 comments on commit fad1994

Please sign in to comment.