draeder / p2p-tracker Goto Github PK
View Code? Open in Web Editor NEWA heroku-ready WebTorrent tracker for use with P2P applications.
A heroku-ready WebTorrent tracker for use with P2P applications.
Hi Draeder!
Thank you so much for this. I left a note here: chr15m/bugout#43 (comment)
But felt it might make more sense to open the discussion here instead.
When I use this code:
var b = new Bugout("foo.bar", {"announce": ["wss://my-deployment.herokuapp.com"]});
My Bugout instance never finds any peers. Remove the "announce" option, (and refreshing until I actually do get a connection to wss://hub.bugout.link
) does work as expected.
Am I missing any steps you took to get this working on your end? :)
Heroku repeatedly produces the following error after a client connects to the tracker:
2021-02-13T16:54:08.583372+00:00 heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/" host=ws.peer.ooo request_id=344c3552-3eb5-4ae6-a989-50bd1b6d933d fwd="123.123.123.123" dyno=web.1 connect=0ms service=56234ms status=503 bytes= protocol=https
Due to the nature of BitTorrent trackers, web sockets is used only to establish communication between peers. No further connection is needed once the peers are connected, so the web sockets channels are closed.
This is a benign error, and will not be addressed. See: https://stackoverflow.com/a/59941248/1551027
Hi,
We're using this Tracker in our app, combined with Novage's P2P Media Loader Demo:
https://github.com/Novage/p2p-media-loader
We downloaded the Demo, changed the default Tracker to one that we created and deployed it online.
The problem is it only works on HTTP (WS) not HTTPS (WSS). How can we get it working on HTTPS? What are the steps?
Thanks for this! It's cool and I used it for a while to support a bugout based p2p game side project. It worked great, and it's hard to beat the convenience of one click, but I put the project down for a while and when I came back, Heroku free was no more.
Any pointers to other free / easy hosting are appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.