mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Change scope of clients object
This commit is contained in:
parent
d56fce37dd
commit
385d9f16e9
@ -385,8 +385,6 @@ module.exports = function(RED) {
|
||||
}
|
||||
RED.nodes.registerType("tcp out",TcpOut);
|
||||
|
||||
var clients = {};
|
||||
|
||||
function TcpGet(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
this.server = n.server;
|
||||
@ -412,6 +410,8 @@ module.exports = function(RED) {
|
||||
this.connected = false;
|
||||
var node = this;
|
||||
|
||||
var clients = {};
|
||||
|
||||
this.on("input", function(msg) {
|
||||
var i = 0;
|
||||
if ((!Buffer.isBuffer(msg.payload)) && (typeof msg.payload !== "string")) {
|
||||
|
Loading…
Reference in New Issue
Block a user