forked from snxraven/LinkUp-P2P-Chat
Started working on ChatRoom class
This commit is contained in:
@ -21,6 +21,8 @@ class Client extends EventEmitter {
|
||||
|
||||
this.swarm.on('update', () => {
|
||||
console.log(`Peers count: ${this.swarm.connections.size}`);
|
||||
console.log([...this.swarm.connections])
|
||||
process.exit(-1);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user