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);