bump package and close ws

This commit is contained in:
Dave Conway-Jones 2017-06-28 08:56:38 +01:00
parent 8314f9dc05
commit a7e40afea4
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -71,7 +71,10 @@ module.exports = function(RED) {
client.disconnect(true);
});
}
node.on("close", function() { socket = null; });
node.on("close", function() {
socket.close();
socket = null;
});
node.status({});
socket.on('connection', callback);
}