To send something to all clients, you use:
io.sockets.emit(\'response\', data);
To receive from clients, you use:
socket.on
broadcast.emit sends the msg to all other clients (except for the sender)
socket.on('cursor', function(data) { socket.broadcast.emit('msg', data); });