Live data from Hacker News

Show HN: WebRTC signalling data using QR codes

github.com

51–55 of 55 posts

Re: Show HN: WebRTC signalling data using QR codes

#51

Earlier quoted context omitted.

Although it uses Tor and is probably outdated, here is a PoC I wrote of bootstrapping a DHT network on the server side and using the client side to discover peers: https://github.com/cretz/tor-dht-poc

I saw you use IPFS in there, are you sure it did not use one of their signalling servers to find the peers?

Used one of my own in Go, in that same repo using IPFS libs. Also, more "bootstrap" server than "signalling" server as its websockets not webrtc.

Re: Show HN: WebRTC signalling data using QR codes

#52

Earlier quoted context omitted.

> In regards to using a DHT, that's something I have not researched. I am not sure how long an offer is valid, were you thinking of being able to update them as needed whenever you want to establish a connection? Yes. I have toyed with js-libp2p to obtain "providers" based on a key, but I believe the part of js-libp2p that allows you to participate in the DHT isn't quite done [0]. I imagine you'd make a CID that woul…

I created swarm-peer-server [1] as a way to connect to specific peers over a DHT using a public key known ahead of time. I use this in a networked app I've built to perform WebRTC signaling between peers [2]. The networking and crypto works using modules popular in the Dat Project community. The challenge is that multiple peers could announce under the same hash on the DHT. Thus I have code to perform a handshake to…

Thank you for sharing. Metastream is very nice! I thought I was following Paul Frazee's blog but I wasn't (updated my feeds now) so, thanks for the link to the `hyperswarm` post too.
Post reply on HN