[] (https://circleci.com/gh/soufiaane/CapValue)
var io = require('socket.io')(3000); var redis = require('redis').createClient; var adapter = require('socket.io-redis'); var pub = redis(6379, 'localhost', { auth_pass: "cvc2016" }); var sub = redis(6379, 'localhost', { return_buffers: true, auth_pass: "cvc2016" });
io.adapter(adapter({ pubClient: pub, subClient: sub }));
io.sockets.on('connection', function(socket) { socket.on('message', function(data) { console.log(data); }); });
rabbitmqctl stop_app rabbitmqctl reset rabbitmqctl start_app
sudo rabbitmqctl add_user cvcadmin ****
sudo rabbitmqctl add_vhost cvcHost
sudo rabbitmqctl set_user_tags cvcadmin administrator
sudo rabbitmqctl set_permissions -p cvcHost cvcadmin "." "." ".*"
sudo rabbitmq-plugins enable rabbitmq_management