Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config) {
this._config = config || {};
this.torrents = [];
this._client = new WebTorrent();
this._client.on('error', (err) => {
console.log('[WebTorrent Error]', err)
});
}