-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
browser-to-browser connectivity with webRTC and pubsub (gossipsub) #77
Comments
... I took the list of bootstrappers from the default helia bootstrap nodes. |
Hello all! Can you maybe point us in the right direction, as this is a blocker for our project :/ That would help us a great deal 🙏 |
I am using the library in the same way except using private relays instead of public nodes. First, I will say, it absolutely can be made to work. Unfortunately, there are still quite a few landmines in the process. From my experience, you will need to enable 'debug' output in your browsers A couple of specific points:
|
Hey @benjaminpreiss, Since this issue is not directly related to this repo, I'm closing it. FYI, it's hard building js-libp2p browser apps that don't have dedicated bootstrappers that can help relay gossipsub messages, in case browser-to-browser connections don't work. I'm working on polishing the browser-to-browser story in #95. Besides that everything that @justin0mcateer said is on point. I'd add that at this point there's no point in using Mplex. Just use yamux
|
Dear all,
I have been working on an example to showcase browser to browser connectivity. The goal is to subscribe to a topic and display the messages published by other peers on that topic.
Also, I don't want to host a relay server myself, but instead use a public relay server hosted by someone else for now.
For this, I built a frontend that helps to connect two a publisher/server and a subscriber/client:
To reproduce, just clone the repo, then
cd experiments/ipfs
,yarn
andyarn dev
.As you can see in the above screenshots, I test this in two independent incognito browser windows, one acting as a server and one as a client.
Now I have two problems:
I guess it has something to do with the libp2p configuration or my other code dealing with connectivity, but I can't figure out what the problem is... Can someone here help me? I think it would be great for others as well to know how to do this :)
The text was updated successfully, but these errors were encountered: