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

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/sub_quit_test.js
express_translate-1.0.13 node_modules/redis/benches/sub_quit_test.js
express_translate-1.0.12 node_modules/redis/benches/sub_quit_test.js
express_translate-1.0.11 node_modules/redis/benches/sub_quit_test.js