I am trying to create a Private network between a browser (chrome) and a go-node. I have created a custom libp2p bundle and in it defined a Connection Protector (with my swarm key). The IPFS node does not seem to pick it up. Has anyone successfully created a private network in browser? For now I am running it as a full node on the page, and later plan to put it in a service worker.
It’s take me a while but I was able to get this to work with a custom libp2p and protector. You then need to make sure your go-node has ws port accessible so the js-ipfs browser node can communicate with it. If you need additional help let me know
Is there any way that you can provide an example of this?
I have been trying to get this to work for some time now and the best I have is an instance of libp2p connecting to the node with a custom protector, but when I try to pass that instance or bundle into IPFS, IPFS won’t connect.
into libp2p\src\config.js
unfortunately this just switch off warnings. connProtector hasn’t been accepted anyway. upgrade libp2p to 0.23.0 resolves the problem
I am looking for this information as well. I’ve moved my back-end IPFS network to a private network of go-ipfs nodes using a swarm.key, by following these directions. I’m aware of the requirements to use secure websockets when connecting between a browser and a go-ipfs node. But how do I implement the swarm.key into a browser node running js-ipfs?
If anyone has a link to an example, gist, documentation, or whatever, please add it.