Allow unlimited event listeners on mqttConnectionPool

Fixes #71
pull/75/head
Nicholas O'Leary 2013-11-13 15:00:55 +00:00
parent 848a69dc26
commit 8426c9802b
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module.exports = {
if (!connections[id]) {
connections[id] = function() {
var client = mqtt.createClient(port,broker);
client.setMaxListeners(0);
var options = {keepalive:15,clientId:'mqtt_' + (1+Math.random()*4294967295).toString(16)};
var queue = [];
var subscriptions = [];