Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ To connect to a tracker, just do this:
```js
var Client = require('bittorrent-tracker').Client
var parseTorrent = require('parse-torrent')
var fs = require('fs')

var torrent = fs.readFileSync(__dirname + '/torrents/bitlove-intro.torrent')
var parsedTorrent = parseTorrent(torrent) // { infoHash: 'xxx', length: xx, announce: ['xx', 'xx'] }
Expand Down Expand Up @@ -73,7 +74,7 @@ client.update()
client.stop()

// scrape
client.scape()
client.scrape()

client.on('scrape', function (data) {
console.log('got a scrape response from tracker: ' + data.announce)
Expand Down