socket.on('user_info', function(username){
console.log('username: ' + username);
});
socket.on('connect', function (data) {
console.log(username);
if(username != 1) {
socket.emit('user_info', { username : username});
}
else {
console.log('Cant autheticate: You are not logged in.');
}
});