forked from snxraven/LinkUp-P2P-Chat
Compare commits
No commits in common. "66d684e473f718faaf9da0c95b5d4aa1d47c341f" and "033330fd0423027b4de9b8bf903ca7031527bc5a" have entirely different histories.
66d684e473
...
033330fd04
@ -23,7 +23,7 @@ class Client extends EventEmitter {
|
||||
console.log(`Peers count: ${this.swarm.connections.size} (${this.swarm.peers.size})`);
|
||||
|
||||
this.swarm.peers.forEach((peer, peerInfo) => {
|
||||
console.log(`Peer ${peer} is in topic(s) ${[peerInfo.topics].filter(topic => topic).map(topic => topic.toString('hex'))}`);
|
||||
console.log(`Peer ${peer} is in topic(s) ${[...peerInfo.topics].map(topic => topic.toString('hex'))}`);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user