Small updates, setMaxListeners(0).

This commit is contained in:
Dave Conway-Jones 2016-08-17 09:24:12 +01:00
parent 6dac8eb94d
commit 63b1ed4156
4 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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.*",

View File

@ -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"});

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# date: Jun 14th v1.0.15
# date: Aug 17th v1.0.17
CACHE:
index.html