Sha256: d999344eb34fcd0ea43c10447ddf08295e7f0b43ac96486d68d5b88e20895b64

Contents?: true

Size: 351 Bytes

Versions: 32

Compression:

Stored size: 351 Bytes

Contents

var client = require('../index').createClient()
  , client2 = require('../index').createClient()
  , assert = require('assert');

client.once('subscribe', function (channel, count) {
  client.unsubscribe('x');
  client.subscribe('x', function () {
    client.quit();
    client2.quit();
  });
  client2.publish('x', 'hi');
});

client.subscribe('x');

Version data entries

32 entries across 32 versions & 3 rubygems

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