Created
August 13, 2018 17:30
-
-
Save MikeShi42/34306aa5abb22bde80e6bab9ff1496a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket.on('disconnect', function() { | |
console.log(`Player ${playerIndex} Disconnected`); | |
connections[playerIndex] = null; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment