fix websocket multiple connections

This commit is contained in:
Dave Conway-Jones 2018-05-02 23:57:11 +01:00
parent 256e8076f5
commit 37f4d61d02
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
3 changed files with 4 additions and 1 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.1.11 - fix websocket multiple connections
- v1.1.9 - add ability to add geoJSON layers
- v1.1.8 - add videoUrl property to allow mp4 insert in popup
- v1.1.7 - extend path correctly - Issue #28

View File

@ -1,6 +1,6 @@
{
"name": "node-red-contrib-web-worldmap",
"version": "1.1.9",
"version": "1.1.11",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": {
"express": "^4.16.2",

View File

@ -82,6 +82,7 @@ module.exports = function(RED) {
clients[c].end();
}
}
socket.removeListener('connection', callback);
node.status({});
});
socket.on('connection', callback);
@ -120,6 +121,7 @@ module.exports = function(RED) {
clients[c].end();
}
}
socket.removeListener('connection', callback);
node.status({});
});
socket.on('connection', callback);