You've already forked node-redis
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:
3
index.js
3
index.js
@@ -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)];
|
||||
|
Reference in New Issue
Block a user