bittorrent-tracker/lib/client
Feross Aboukhadijeh 2966165a8f BREAKING: Client() takes single opts object now
To use the client, you used to pass in four arguments:

`new Client(peerId, port, parsedTorrent, opts)`

Now, passing in the torrent is no longer required, just the `announce`
and `infoHash` properties. This decouples this package from
`parse-torrent`.

All options get passed in together now:

new Client({
infoHash: '', // hex string or Buffer
peerId: '', // hex string or Buffer
announce: [], // list of tracker server urls
port: 6881 // torrent client port, (in browser, optional)
})

All the normal optional arguments (rtcConfig, wrtc, etc.) can still be
passed in with the rest of these options.

Fixes #118. Fixes #115.

Added ws tests for scrape.
2016-03-31 21:37:51 -07:00
..
http-tracker.js Remove all Function.bind calls 2016-03-28 23:38:23 -07:00
tracker.js Remove all Function.bind calls 2016-03-28 23:38:23 -07:00
udp-tracker.js BREAKING: Client() takes single opts object now 2016-03-31 21:37:51 -07:00
websocket-tracker.js Remove all Function.bind calls 2016-03-28 23:38:23 -07:00