You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I was fooling around with REDIS and node-redis-pubsub. I started two redis-cli instances locally and ran two node scripts like the above:
varNRP=require('node-redis-pubsub');varnrpConfig={port: 6379,host: '127.0.0.1'};varnrp=newNRP(nrpConfig);// This is the NRP clientconsole.log("Listening to channel test");nrp.on('test',function(data){console.log('DATA RECEIVED: '+data);});
In one redis-cli, I subscribed to channel test
From the other I publish to channel test and see the results ONLY IN THE REDIS CLI SUBSCRIBED INSTANCE, but nothing happens from the script. If I publish to the same channel from node environment, the script suddenly works and I see the published message.
Any clues why this might be happening ?
The text was updated successfully, but these errors were encountered:
Hello!
So I was fooling around with REDIS and node-redis-pubsub. I started two redis-cli instances locally and ran two node scripts like the above:
In one redis-cli, I subscribed to channel test
From the other I publish to channel test and see the results ONLY IN THE REDIS CLI SUBSCRIBED INSTANCE, but nothing happens from the script. If I publish to the same channel from node environment, the script suddenly works and I see the published message.
Any clues why this might be happening ?
The text was updated successfully, but these errors were encountered: