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 418b6670076c7ca8621d1e7613cccba3f9ae168d
@@ -88,9 +88,9 @@ var fs = require('fs')
var client = new WebTorrent()
var magnetURI = 'magnet:...'
var torrentId = 'magnet:...'
client.add(magnetURI, function (torrent) {
client.add(torrentId, function (torrent) {
torrent.files.forEach(function (file) {
console.log('Started saving ' + file.name)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.