node js redis pub sub model code example
Example 1: redis pub or sub nodejs
more example redis pub/sub -> https://github.com/restuwahyu13/express-todo-redis
Example 2: how to implement redis pub sub model using nodejs
var redis = require(“redis”);var publisher = redis.createClient();publisher.publish(“notification”, “{\”message\”:\”Hello world from Asgardian!\”}”, function(){ process.exit(0);});