rem: io.sockets.on('connection',function(socket){ socket.on('emit_from_client',function(data){ console.log(data); console.log(data.name); var name = data.name;    io.sockets.emit('emit_from_server','[' + name +'] : ' + data.msg);           }); }); 
add: setTimeout(function(){ console.log('read temperature'); gpio(0x68 <<8) .then(function(result){ var level =result & 0x3ff; var volt = 3300 *level/1024; var temprature = (volt - 500) /10; io.sockets.emit(temperature); console.log(temprature); }, function(){console.log('error');}); },10000); 
context: io.sockets.on('connection',function(socket){	socket.on('emit_from_client',function(data){		console.log(data);		console.log(data.name);		var name = data.name;					// socket.set('client_name',data.name);		// socket.get('client_name',function(err,name){			io.sockets.emit('emit_from_server','[' + name +'] : ' + data.msg);		// });						//only the connected socket		//socket.emit('emit_from_server','hello from server: ' + data);		//all socket except theconnected socket		//socket.broadcast.emit('emit_from_server','hello from server: ' + data);		//all socket connected		// io.sockets.emit('emit_from_server','[' + socket.id +'] : ' + data);	});});
meta: 7694	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7694/22c137ab660d7fffe1a7a2ccfa7e7f2e8dba0adc/app.js/clean/server/app.js