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

Does torrent.addPeer(addr) work in the browser? #687

Closed
Wasser-Eis opened this issue Mar 21, 2016 · 2 comments
Closed

Does torrent.addPeer(addr) work in the browser? #687

Wasser-Eis opened this issue Mar 21, 2016 · 2 comments

Comments

@Wasser-Eis
Copy link

@Wasser-Eis Wasser-Eis commented Mar 21, 2016

Does this function work in the browser?
If yes, please give at least one concrete example how to use it in the browser?
When does it work?
How should addr be encoded?

@Wasser-Eis Wasser-Eis changed the title What does torrent.addPeer(addr) do and how do I use it? Does torrent.addPeer(addr) work in the browser? Mar 21, 2016
@feross feross closed this in d72ea8b Mar 21, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 21, 2016

Yes, but you can only use it for WebRTC peers in the browser.

Normally, you don't need to call addPeer. You can rely on WebTorrent to find peers for you based on the tracker servers or DHT. This is just for manually adding a peer to the client.

Docs are updated now: https://github.com/feross/webtorrent/blob/master/docs/api.md#torrentaddpeerpeer

@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
2 participants
You can’t perform that action at this time.