Sha256: 04346ff0a84ece8ce725d420f36117bce85c53b986007a15be9eacb5fba532d0
Contents?: true
Size: 507 Bytes
Versions: 33
Compression:
Stored size: 507 Bytes
Contents
var client = require("redis").createClient(), client2 = require("redis").createClient(); client.subscribe("something"); client.on("subscribe", function (channel, count) { console.log("Got sub: " + channel); client.unsubscribe("something"); }); client.on("unsubscribe", function (channel, count) { console.log("Got unsub: " + channel + ", quitting"); client.quit(); }); // exercise unsub before sub client2.unsubscribe("something"); client2.subscribe("another thing"); client2.quit();
Version data entries
33 entries across 33 versions & 4 rubygems