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 upBrowser VS Electron #1318
Browser VS Electron #1318
Comments
This comment has been minimized.
This comment has been minimized.
|
Depending on which process (render or main) of Electron you run WebTorrent in you might be connecting to WebRTC clients or TCP/UDP clients. I think this might be it. |
This comment has been minimized.
This comment has been minimized.
|
I'm going to look into it. But it happens also with files I'm the only seeder (seeding using WebRTC). |
This comment has been minimized.
This comment has been minimized.
|
https://instant.io automatically adds tracker servers (which helps with finding peers super quickly). Without any trackers, the only way to find peers is the DHT, which can sometimes take a while. If you're using Or, a better way to do this is: global.WEBTORRENT_ANNOUNCE = createTorrent.announceList
.map(function (arr) {
return arr[0]
})
.filter(function (url) {
return url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0
})From instant.io source code: https://github.com/webtorrent/instant.io/blob/b898193ba36f6f1b748cf23c444d3491c2d3fa78/client/index.js#L15-L21 |
This comment has been minimized.
This comment has been minimized.
|
I was alread adding a tracker programmatically (did not specify this in my post) in this way: I made another test. I simply opened instant.io in electron and used the same hash. |
What version of WebTorrent?
0.98.23
What operating system and Node.js version?
Windows 10 / Node 8.5.0 / electron 1.7.9
What browser and version? (if using WebTorrent in the browser)
Chrome / Firefox
Hi,
I'm developing an electron app and I have a problem with time needed to start a download.
I tried e.g. the infohash 6a9759bffd5c0af65319979fb7832189f4f3c35d (a sintel infohash).
On instant.io and using magnet player in the browser it starts in few seconds.
In the electron app it waits a lot (also minutes) before starting download.
Obviously I'm trying on the same PC, same connection etc.
Any idea?
Thank you!