1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Add disable_resubscribingg option. Fixes #472

This commit is contained in:
Ruben Bridgewater
2015-10-02 23:28:59 +02:00
parent 088b3f6996
commit e8d9858e29
4 changed files with 69 additions and 8 deletions

View File

@@ -318,6 +318,9 @@ RedisClient.prototype.on_ready = function () {
self.emit("ready");
}
};
if (this.options.disable_resubscribing) {
return;
}
Object.keys(this.subscription_set).forEach(function (key) {
var space_index = key.indexOf(" ");
var parts = [key.slice(0, space_index), key.slice(space_index + 1)];