Created
April 9, 2013 01:51
-
Star
(112)
You must be signed in to star a gist -
Fork
(25)
You must be signed in to fork a gist
-
-
Save reu/5342276 to your computer and use it in GitHub Desktop.
Revisions
-
reu created this gist
Apr 9, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ 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"); publisher.publish("test", "haaaaai"); publisher.publish("test", "kthxbai");