node-redis-broadcast
v1.0.1
Published
redis publish subscribe in nodejs
Downloads
1
Maintainers
Readme
nodejs redis publish subscribe
var PubSub = require('node-redis-broadcast');
var broadcast = new PubSub({
host: '127.0.0.1',
port: 6379,
prefix: 'test'
});
broadcast.subscribe('test', function (e) {
console.log(e);
});
broadcast.publish('test', 123);