mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
3e021b3a75
commit
94ee465682
@ -454,10 +454,10 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clients[connection_id].client.on('data', function(data) {
|
clients[connection_id].client.on('data', function(data) {
|
||||||
if (node.out == "sit") { // if we are staying connected just send the buffer
|
if (node.out === "sit") { // if we are staying connected just send the buffer
|
||||||
if (clients[connection_id]) {
|
if (clients[connection_id]) {
|
||||||
clients[connection_id].msg.payload = data;
|
clients[connection_id].msg.payload = data;
|
||||||
node.send(clients[connection_id].msg);
|
node.send(RED.util.cloneMessage(clients[connection_id].msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (node.splitc === 0) {
|
else if (node.splitc === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user