Skip to content

Commit

Permalink
Removed standard keepalive (10s) in favor of mqtt.js keepalive (60s) f…
Browse files Browse the repository at this point in the history
…ixes #117.
  • Loading branch information
sclausen committed Oct 5, 2018
1 parent 904490c commit 6d5c954
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mqtt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export class MqttService {
public messages: Subject<IMqttMessage> = new Subject<IMqttMessage>();

private _clientId = this._generateClientId();
private _keepalive = 10;
private _connectTimeout = 10000;
private _reconnectPeriod = 10000;
private _url: string | undefined = undefined;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6d5c954

Please sign in to comment.