Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebTorrent.Seed should return an error if it cannot connect to the tracker #333
Comments
This comment has been minimized.
This comment has been minimized.
|
This is fixed in webtorrent 0.48.0. You can check for warnings like this: var torrent = client.seed(buf, { announce: ['invalid://definitely-not-valid'] })
torrent.on('warning', function (err) {
console.log('torrent warning', err.message)
})You should probably always be attaching a 'warning' handler and logging warnings since they contain useful information. There's also the 'error' event which is even more important to listen for. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is currently no way to tell if connecting to the tracker was successful.
Example:
Seed should support an error callback with debug information.