Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs #694

Closed
wants to merge 10 commits into from

Change magnetURI to torrentId

Change magnetURI to torrentId to avoid confusing, because client.add is not limited only to magnet URIs and there are many ways to define torrentId, e.g. HTTP(S) URL to a *.torrent file.
  • Loading branch information
FluorescentHallucinogen committed Mar 25, 2016
commit 5f90276e8c15589a5e3fa7ff87c6b111e1d394d5
@@ -145,9 +145,9 @@ standards (no plugins, just HTML5 and WebRTC)! It's easy to get started!
var WebTorrent = require('webtorrent')
var client = new WebTorrent()
var magnetURI = '...'
var torrentId = '...'
client.add(magnetURI, function (torrent) {
client.add(torrentId, function (torrent) {
// Got torrent metadata!
console.log('Client is downloading:', torrent.infoHash)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.