diff --git a/packages/node_modules/@node-red/nodes/core/network/31-tcpin.js b/packages/node_modules/@node-red/nodes/core/network/31-tcpin.js index 7cf34f4f8..406ea0247 100644 --- a/packages/node_modules/@node-red/nodes/core/network/31-tcpin.js +++ b/packages/node_modules/@node-red/nodes/core/network/31-tcpin.js @@ -831,7 +831,9 @@ module.exports = function(RED) { else if (!clients[connection_id].connecting && clients[connection_id].connected) { if (clients[connection_id] && clients[connection_id].client) { let event = dequeue(clients[connection_id].msgQueue) - clients[connection_id].client.write(event.msg.payload); + if (event.msg.payload !== undefined ) { + clients[connection_id].client.write(event.msg.payload); + } event.nodeDone(); } }