Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function WebConn (url, torrent) {
Wire.call(this)
this.url = url
this.webPeerId = Rusha.createHash().update(url).digest('hex')
this._torrent = torrent
this._init()
}
WebConn.prototype.destroy = function () {
Wire.prototype.destroy.call(this)
this._torrent = null
}