File: chat-websocket/node_modules/socket.io/node_modules/redis/benches/re_sub_test.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/socket.io/node_modules/redis/benches/re_sub_test.js   Download  
File: chat-websocket/node_modules/socket.io/node_modules/redis/benches/re_sub_test.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 351 bytes
 

Contents

Class file image Download
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');