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 upEmit more warnings in the client instance (http errors, tracker connection errors...) #960
Comments
This comment has been minimized.
This comment has been minimized.
|
yes please do - currently our webseeds got stuck and we have no idea why. More debugging will be really helpful |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You're right. This would be useful to have! Actually, there is already code in place that calls When we emit 'close' then 'error', the problem is that This is now fixed! |
This comment has been minimized.
This comment has been minimized.
That's a good point. PR here: #1021 |
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks @feross! |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Hi,
If a tracker is down and the client wants to connect through a websocket, the connection will fail but we don't have any warnings events in the client instance. It could be useful for certain applications to notify their users for example.
In another case, we don't have warnings if the client cannot fetch the torrent file from the
xsparameter (just debug console logs: https://github.com/feross/webtorrent/blob/master/lib/torrent.js#L415). This could be a precious information if the application relies actively on webseed.Thanks :)
WebTorrent version: 0.96.5
Browser: Chromium 53