mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
updates to serial, watch, websocket, udp, twitter, email to handle no payload.
This commit is contained in:
@@ -134,7 +134,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
|
||||
node.on("input", function(msg) {
|
||||
if (msg.payload != null) {
|
||||
if (msg.hasOwnProperty("payload")) {
|
||||
var add = node.addr || msg.ip || "";
|
||||
var por = node.port || msg.port || 0;
|
||||
if (add == "") {
|
||||
|
||||
Reference in New Issue
Block a user