- this.socket.on('addPeer', function() {
- this.peers++;
- console.log(`There are now ${this.peers} participants`);
+ this.socket.on('addPeer', function(data) {
+ console.log(data);
+ that.peers++;
+ console.log(`There are now ${that.peers} participants`);