Des requêtes de recherche en streaming avec Node.js et Socket.io (streaming vers une prise donnée
var socket = io.listen(app), admin;
socket.on('connection', function(client){
client.on('message', function(data){
if( data === 'AdminLogin' ) {
admin = client;
}
if( admin ) {
admin.send(data);
}
});
});
SAMER SAEID