chameleonbr / node-red-contrib-redis

Node RED client for Redis with pub/sub, list, lua scripting and other commands support.
MIT License
46 stars 42 forks source link

Redis Cmd/Lua connection program when using multiple redis server #47

Closed Easyfilecopy closed 3 years ago

Easyfilecopy commented 3 years ago

Produce one rmt, one local Use Get Cmd to retrieve local var. It always uses rmt redis server. ========== FIX ========== function RedisCmd(n) { RED.nodes.createNode(this, n); this.server = RED.nodes.getNode(n.server); this.command = n.command; this.name = n.name; this.topic = n.topic; this.params = n.params; var node = this; this.block = n.block || false; // let id = this.block ? n.id : n.server.name; let id = this.block ? n.id : n.server;

chameleonbr commented 3 years ago

Hi @Easyfilecopy I will change the code and test. Thanks for use this module.