socket.on('connection', function(client){
var clientid = client.sessionId;
console.log('Connection from '+clientid);
var player = 0;
client.on('message',function(data){
HandleClientData(data,clientid);
});
client.on('disconnect',function(){
console.log('Server has disconnected');
});
});
Is the variable "player" unique to the client? How can I get/set this variable from another function?
Thanks.