mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
tcp node add reply (to all) capability
if no _session present.
This commit is contained in:
@@ -303,6 +303,17 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (var i in connectionPool) {
|
||||
if (Buffer.isBuffer(msg.payload)) {
|
||||
connectionPool[i].write(msg.payload);
|
||||
} else if (typeof msg.payload === "string" && node.base64) {
|
||||
connectionPool[i].write(new Buffer(msg.payload,'base64'));
|
||||
} else {
|
||||
connectionPool[i].write(new Buffer(""+msg.payload));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
var connectedSockets = [];
|
||||
|
Reference in New Issue
Block a user