Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redis_broadcast.psubscribe('*', function (err, count) {
- });
- redis_broadcast.on('pmessage', function (subscribed, socketFunction, message) {
- // id like to use get_users below
- // socketFunction = get_users
- // message is the data
- });
- io.on('connection', function (socket) {
- socket.on('get_users', function () {
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement