Webtorrent: Count active peers of webtorrents witouth downloading

Created on 15 Mar 2016  Â·  5Comments  Â·  Source: webtorrent/webtorrent

Hello!

I have a list of webtorrents, and I wan't to display how much peers are available for each webtorrent.

How can I achieve this using only javascript and witouth start the download of the webtorrents?

If that's not possible, is there any way to get the "Health" of the webtorrents?

Thanks

question

All 5 comments

Perfect! That's exactly what I was looking for.

Question:
I'm including the WebTorrent to my project from the CDN

Is the bittorrent-tracker included in the webtorrent.min.js? If that's the case, how can I access the "scrape" method?

Scraping is not yet available on WebSocket tracker client. PR pending: https://github.com/feross/bittorrent-tracker/pull/125

@DiegoRBaquero WebSocket tracker scraping is released now.

@marcu87 You can use the bittorrent-tracker package directly to scrape: https://github.com/feross/bittorrent-tracker#multi-scrape This functionality is not yet – and may never be – exposed via the WebTorrent script itself.

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phuchptty picture phuchptty  Â·  6Comments

feross picture feross  Â·  4Comments

mikeal picture mikeal  Â·  4Comments

msqaddura picture msqaddura  Â·  5Comments

pataquets picture pataquets  Â·  3Comments