How to use bittorrent-protocol - 2 common examples

To help you get started, we’ve selected a few bittorrent-protocol examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PearInc / PearDownloader.js / src / lib / webconn.js View on Github external
function WebConn (url, torrent) {
  Wire.call(this)

  this.url = url
  this.webPeerId = Rusha.createHash().update(url).digest('hex')
  this._torrent = torrent

  this._init()
}
github PearInc / PearDownloader.js / src / lib / webconn.js View on Github external
WebConn.prototype.destroy = function () {
  Wire.prototype.destroy.call(this)
  this._torrent = null
}

bittorrent-protocol

Simple, robust, BitTorrent peer wire protocol implementation

MIT
Latest version published 9 months ago

Package Health Score

69 / 100
Full package analysis

Popular bittorrent-protocol functions