forked from snxraven/LinkUp-P2P-Chat
Trying to find a way to check which topic each pear is from
This commit is contained in:
parent
fda25abe8c
commit
7399585d9e
@ -21,8 +21,10 @@ class Client extends EventEmitter {
|
||||
|
||||
this.swarm.on('update', () => {
|
||||
console.log(`Peers count: ${this.swarm.connections.size}`);
|
||||
console.log([...this.swarm.connections]);
|
||||
if(this.swarm.connections.size > 0) process.exit(-1);
|
||||
if(this.swarm.connections.size > 0) {
|
||||
console.log([...this.swarm]);
|
||||
process.exit(-1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user