Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count active peers of webtorrents witouth downloading #678

Closed
marcu87 opened this issue Mar 15, 2016 · 5 comments
Closed

Count active peers of webtorrents witouth downloading #678

marcu87 opened this issue Mar 15, 2016 · 5 comments
Labels

Comments

@marcu87
Copy link

@marcu87 marcu87 commented Mar 15, 2016

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

@rom1504

This comment has been minimized.

@marcu87

This comment has been minimized.

Copy link
Author

@marcu87 marcu87 commented Mar 15, 2016

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

Question:
I'm including the WebTorrent to my project from the CDN <script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script>

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

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Mar 15, 2016

Scraping is not yet available on WebSocket tracker client. PR pending: webtorrent/bittorrent-tracker#125

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 16, 2016

@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.

@feross feross closed this Mar 16, 2016
@feross feross added the question label Mar 16, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

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

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.