diff --git a/README.md b/README.md index 82d1d70..4ed32d3 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ map web page for plotting "things" on. ![Map Image](https://dceejay.github.io/pages/images/redmap.png) ### Changes + - v1.0.17 - Removed Mapquest maps. Bug fixes - reduced leakage of listeners being added. - v1.0.12 - Added ability to set initial start position, zoom level and base map layer. - v1.0.x - now uses socket.io to connect to backend - means this node now has an input connection (like "proper" nodes should :-), and you no longer need a websocket node in parallel. diff --git a/package.json b/package.json index b3a2369..2f2ada2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-contrib-web-worldmap", - "version" : "1.0.16", + "version" : "1.0.17", "description" : "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies" : { "express": "4.*", diff --git a/worldmap.js b/worldmap.js index 79fadff..f4b0377 100644 --- a/worldmap.js +++ b/worldmap.js @@ -34,6 +34,7 @@ module.exports = function(RED) { RED.httpNode.use("/worldmap", express.static(__dirname + '/worldmap')); var callback = function(client) { + client.setMaxListeners(0); node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount}); function handler(msg) { client.emit("worldmapdata",msg.payload); @@ -74,6 +75,7 @@ module.exports = function(RED) { var node = this; var callback = function(client) { + client.setMaxListeners(0); node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount}); client.on('worldmap', function(data) { node.send({payload:data, topic:"worldmap"}); diff --git a/worldmap/worldmap.appcache b/worldmap/worldmap.appcache index 25fa7ab..51e3561 100644 --- a/worldmap/worldmap.appcache +++ b/worldmap/worldmap.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# date: Jun 14th v1.0.15 +# date: Aug 17th v1.0.17 CACHE: index.html