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

Use complete magnet URI

Use complete magnet URI to keep example working, because trackerless magnet URIs are not supported in web browser environment (at least at this moment).
  • Loading branch information
FluorescentHallucinogen committed Mar 25, 2016
commit 59a2ecf4f59de92338da19dbb3f4e2d5599ea093
@@ -298,7 +298,7 @@ Here is a usage example:

```js
var client = new WebTorrent()
var torrentId = 'magnet: ...'
var torrentId = 'magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&dn=sintel.mp4&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel-1024-surround.mp4'
client.add(torrentId, function (torrent) {
// create HTTP server for this torrent
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.