enter code here
Im making an nodejs application... let me show my question;;
//id = dinamic string.. "user1", "user2", "userX"
usersArray = [];
usersArray[id]["socket"] = socket;
When sockets ends, I want to remove [id] from usersArray.. but at this time id
is not availabe
socket.on('end', function () {
?........?
socket.end();
});
How to do it?