Closed a-type closed 4 years ago
For anyone interested, I read the source code a bit and determined I could stop trying to connect to hub.bugout.link
(which appears to be a redundant, self hosted tracker URL) by passing ['wss://tracker.openwebtorrent.com', 'wss://tracker.btorrent.xyz']
to options.announce
. This reduces redundancy I suppose, but it does remove the errors.
As you've correctly deduced, hub.bugout.link
is a WebTorrent tracker which I host myself (the other two in the list are hosted by WebTorrent people).
Over here I started a project for a "WebRTC signaling mesh" which will decentralize signaling itself so we no longer have to rely on centralized single points of failure during signaling.
As far as the connection failures go, uptime
on that box currently reports loadavg at 0.0 0.0 0.0
, however in recent weeks it has had a number of usage spikes due to the release of Slingcode. It could be that during one of those spikes the connectivity issues started. I should probably up the resources on that box. Thanks for pointing this out.
By the way Food List looks great!
I'm excited you're still working on decentralization tech! I'm just now getting into this space and as I said, this has been my favorite library so far, the easiest to get started with, and the only one I was able to actually launch in an app!
It's a shame we still require centralized signaling to establish P2P, although it makes sense given the way the web works. Glad to see folks working past that. I'll be following your progress 👍🏻 Maybe at some point I'll get enough of a handle on this tech to help out.
First - this is a great little tool. I've done a lot of experimenting with web P2P tech and this is the first one which makes things simple and accessible enough to get off the ground immediately. I've rigged it up with QR codes for address transfer between devices for my app Food List and after just an hour or so I've already got devices connected and sharing data! Amazing!
That said, I've had some hiccups with the WebSocket connection to
hub.bugout.link
. This appears to be a server you're hosting. Sometimes things work fine, but other times the connection drops prematurely or I get a 500 error during handshake.I'm trying to determine a few things:
Edit: just noticed there are pub keys in the logs - a note to anyone trying to connect to my app, I rotated my address already 😬