From 6d5c954db69ef14be1e21f2c81e48ad48ef95f18 Mon Sep 17 00:00:00 2001 From: Sebastian Clausen Date: Fri, 5 Oct 2018 13:11:09 +0200 Subject: [PATCH] Removed standard keepalive (10s) in favor of mqtt.js keepalive (60s) fixes #117. --- src/mqtt.service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mqtt.service.ts b/src/mqtt.service.ts index a5d2630..a4a9472 100644 --- a/src/mqtt.service.ts +++ b/src/mqtt.service.ts @@ -54,7 +54,6 @@ export class MqttService { public messages: Subject = new Subject(); private _clientId = this._generateClientId(); - private _keepalive = 10; private _connectTimeout = 10000; private _reconnectPeriod = 10000; private _url: string | undefined = undefined; @@ -99,7 +98,6 @@ export class MqttService { this.state.next(MqttConnectionState.CONNECTING); const mergedOptions = extend({ clientId: this._clientId, - keepalive: this._keepalive, reconnectPeriod: this._reconnectPeriod, connectTimeout: this._connectTimeout }, options);