Created
March 3, 2016 03:00
-
-
Save jafow/f883e6defba9602757db to your computer and use it in GitHub Desktop.
quick wt start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wt = require('webtorrent'); | |
var client = new wt(); | |
client.seed(__dirname + '/astro.jpg', function (torrent) { | |
console.log('seeding the file ', torrent.infoHash); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment