mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
848a69dc26
commit
8426c9802b
@ -30,6 +30,7 @@ module.exports = {
|
|||||||
if (!connections[id]) {
|
if (!connections[id]) {
|
||||||
connections[id] = function() {
|
connections[id] = function() {
|
||||||
var client = mqtt.createClient(port,broker);
|
var client = mqtt.createClient(port,broker);
|
||||||
|
client.setMaxListeners(0);
|
||||||
var options = {keepalive:15,clientId:'mqtt_' + (1+Math.random()*4294967295).toString(16)};
|
var options = {keepalive:15,clientId:'mqtt_' + (1+Math.random()*4294967295).toString(16)};
|
||||||
var queue = [];
|
var queue = [];
|
||||||
var subscriptions = [];
|
var subscriptions = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user