Small updates, setMaxListeners(0).
This commit is contained in:
parent
6dac8eb94d
commit
63b1ed4156
@ -7,6 +7,7 @@ map web page for plotting "things" on.
|
|||||||
![Map Image](https://dceejay.github.io/pages/images/redmap.png)
|
![Map Image](https://dceejay.github.io/pages/images/redmap.png)
|
||||||
|
|
||||||
### Changes
|
### 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.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
|
- 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.
|
(like "proper" nodes should :-), and you no longer need a websocket node in parallel.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-contrib-web-worldmap",
|
"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.",
|
"description" : "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"express": "4.*",
|
"express": "4.*",
|
||||||
|
@ -34,6 +34,7 @@ module.exports = function(RED) {
|
|||||||
RED.httpNode.use("/worldmap", express.static(__dirname + '/worldmap'));
|
RED.httpNode.use("/worldmap", express.static(__dirname + '/worldmap'));
|
||||||
|
|
||||||
var callback = function(client) {
|
var callback = function(client) {
|
||||||
|
client.setMaxListeners(0);
|
||||||
node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount});
|
node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount});
|
||||||
function handler(msg) {
|
function handler(msg) {
|
||||||
client.emit("worldmapdata",msg.payload);
|
client.emit("worldmapdata",msg.payload);
|
||||||
@ -74,6 +75,7 @@ module.exports = function(RED) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
var callback = function(client) {
|
var callback = function(client) {
|
||||||
|
client.setMaxListeners(0);
|
||||||
node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount});
|
node.status({fill:"green",shape:"dot",text:"connected "+socket.engine.clientsCount});
|
||||||
client.on('worldmap', function(data) {
|
client.on('worldmap', function(data) {
|
||||||
node.send({payload:data, topic:"worldmap"});
|
node.send({payload:data, topic:"worldmap"});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# date: Jun 14th v1.0.15
|
# date: Aug 17th v1.0.17
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user