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 upAdd websocket trackers directly in webtorrent #672
Comments
This comment has been minimized.
This comment has been minimized.
|
That global is handled in torrent.js WebRtc support is available through simple-peer |
…EBTORRENT_ANNOUNCE is not defined fix webtorrent#672
This comment has been minimized.
This comment has been minimized.
|
WebRTC Support is also available on the client. No need to require simple-peer :) |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero what do you mean by "the client" exactly ? Is .WEBRTC_SUPPORT available anywhere else ? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Yes but I can't require the index.js from torrent.js, see #673 |
This comment has been minimized.
This comment has been minimized.
|
You don't need to require it, a Torrent has the reference to the client. You can move the code to the constructor. |
This comment has been minimized.
This comment has been minimized.
|
Well it's all global anyway, I could put it anywhere. But I think it belongs to torrent.js since that's where it's used. |
This comment has been minimized.
This comment has been minimized.
|
But, and anyone correct me if I'm wrong, wouldn't it be better inside the constructor after this line? torrent.js#L76 |
This comment has been minimized.
This comment has been minimized.
It's actually not a very good idea to make the webtorrent library automatically connect to third party servers without user consent. Because automatically adding servers to .torrent files is basically doing that. I actually made a change very recently to remove the behavior of adding trackers by default to added torrents here: bc69413 Instant.io is a file sending service, so it's fine for it to add it's own and other trackers by default. WebTorrent.app and webtorrent-hybrid should probably stop adding trackers to added files as well ( Going forward, it's safest to ensure that magnet links or .torrent files explicitly contain the trackers to be used. |
This comment has been minimized.
This comment has been minimized.
|
I agree. |
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. |
websocket trackers are added to existing torrents in all the webtorrent dependencies that support webrtc:
It would probably make sense to put that directly in webtorrent, if there is webrtc support.
Also see that discussion webtorrent/webtorrent-hybrid#22 (comment)