We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've ran into this issue. As soon as a socket is connected the server shuts down because of this error. Not sure how this is happening.
1 function getAllPlayers(){ 2 var players = []; 3 4 Object.keys(io.sockets.connected).forEach(function(socketID){ 5 var player = io.sockets.connected[socketID].player; 6 if(player) players.push(player); 7 }); 8 return players; }
Line 4 seems to be the issue.
TypeError: Cannot convert undefined or null to object at Function.keys ()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've ran into this issue. As soon as a socket is connected the server shuts down because of this error.
Not sure how this is happening.
Line 4 seems to be the issue.
TypeError: Cannot convert undefined or null to object
at Function.keys ()
The text was updated successfully, but these errors were encountered: