Skip to content

Instantly share code, notes, and snippets.

View Uriopass's full-sized avatar

Pâris DOUADY Uriopass

View GitHub Profile
@Uriopass
Uriopass / pub-sub.js
Created March 1, 2021 14:46 — forked from reu/pub-sub.js
node.js redis pub-sub example
var redis = require("redis")
, subscriber = redis.createClient()
, publisher = redis.createClient();
subscriber.on("message", function(channel, message) {
console.log("Message '" + message + "' on channel '" + channel + "' arrived!")
});
subscriber.subscribe("test");