You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code below all the initial peers connect (the ones in the peers array) but when a new peer joins that isn't included in that array joins one of the peers I want all of them to connect with that new peer, when I try to do this by broadcasting the new peer's ip and port, the other peers don't connect to the new peer.
var peers = process.argv.slice(3);
var swarm = topology(self, peers);
var connections = []; // all connected sockets
var addresses = []; // all addresses
swarm.on('connection', (socket, connection) => {
console.log('[ New Connection ]');
When I run the code below all the initial peers connect (the ones in the peers array) but when a new peer joins that isn't included in that array joins one of the peers I want all of them to connect with that new peer, when I try to do this by broadcasting the new peer's ip and port, the other peers don't connect to the new peer.
thanks!
The text was updated successfully, but these errors were encountered: