try to protect websocket slightly

pull/145/head
Dave Conway-Jones 4 years ago
parent 6bce963ba9
commit 5f8c6c3658
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

@ -58,6 +58,7 @@ module.exports = function(RED) {
// RED.httpNode.use(node.path, express.static(__dirname + '/worldmap', {maxage:3600000}));
var callback = function(client) {
if (!client.headers.hasOwnProperty("user-agent")) { client.close(); }
//client.setMaxListeners(0);
clients[client.id] = client;
client.on('data', function(message) {

Loading…
Cancel
Save