Skip to content

Commit

Permalink
Update socket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Orlayhemmy committed May 23, 2018
1 parent 1f1fb7e commit a076257
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/socket/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module.exports = function (io) {
});
}
}
console.log(data);
});

socket.on('joinGame', (data) => {
Expand Down Expand Up @@ -139,6 +140,7 @@ module.exports = function (io) {
});

socket.on('disconnect', () => {
io.sockets.emit('connectedUsers', (data));
exitGame(socket);
});

Expand Down

0 comments on commit a076257

Please sign in to comment.