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
// List with users that have set a username | |
let activePlayers = []; | |
// username of player that is currently drawing | |
let playerDrawing; | |
let word; | |
// This will execute everytime a new player connects | |
io.sockets.on('connection', function(socket) { | |
// username is not yet defined |