I am running an ipfs node in the browser using the following config:
const node = new IPFS({
repo: 'ipfs-' + Math.random(),
EXPERIMENTAL: {
pubsub: true,
},
config: {
Addresses: {
Swarm: [
'/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star'
]
}
}
});
I have subscribed to a topic and can find peers + message them across browser tabs but not on the internet!
I am using ipfs-js and packaging it via webpack.
How do I discover and message peers across the network?