From 71940b811f6f3e5814b65ad90d30d793e6f1a260 Mon Sep 17 00:00:00 2001 From: meeki007 <5952964+meeki007@users.noreply.github.com> Date: Sat, 15 Jul 2023 08:02:49 -0400 Subject: [PATCH] Update worldmap.js - for _clientheaders msg (#243) --- worldmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldmap.js b/worldmap.js index 8848e61..8e7c9e5 100644 --- a/worldmap.js +++ b/worldmap.js @@ -268,7 +268,7 @@ module.exports = function(RED) { message = JSON.parse(message); if (message.hasOwnProperty("action")) { if ((node.events.indexOf("connect")!==-1) && (message.action === "connected")) { - setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})}); + setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip, _clientheaders:client.headers})}); } if ((node.events.indexOf("bounds")!==-1) && (message.action === "bounds")) { setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});