|
@@ -14,7 +14,6 @@ import initStropheUtil from './strophe.util';
|
14
|
14
|
import initPing from './strophe.ping';
|
15
|
15
|
import initRayo from './strophe.rayo';
|
16
|
16
|
import initStropheLogger from './strophe.logger';
|
17
|
|
-import LastSuccessTracker from './StropheBoshLastSuccess';
|
18
|
17
|
import Listenable from '../util/Listenable';
|
19
|
18
|
import Caps from './Caps';
|
20
|
19
|
import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
|
|
@@ -88,9 +87,6 @@ export default class XMPP extends Listenable {
|
88
|
87
|
|
89
|
88
|
this.connection = createConnection(this, token, serviceUrl);
|
90
|
89
|
|
91
|
|
- this._lastSuccessTracker = new LastSuccessTracker();
|
92
|
|
- this._lastSuccessTracker.startTracking(this.connection);
|
93
|
|
-
|
94
|
90
|
this.caps = new Caps(this.connection, this.options.clientNode);
|
95
|
91
|
|
96
|
92
|
// Initialize features advertised in disco-info
|
|
@@ -642,7 +638,7 @@ export default class XMPP extends Listenable {
|
642
|
638
|
/* eslint-disable camelcase */
|
643
|
639
|
// check for possible suspend
|
644
|
640
|
details.suspend_time = this.connection.ping.getPingSuspendTime();
|
645
|
|
- details.time_since_last_success = this._lastSuccessTracker.getTimeSinceLastSuccess();
|
|
641
|
+ details.time_since_last_success = this.connection.getTimeSinceLastBOSHSuccess();
|
646
|
642
|
/* eslint-enable camelcase */
|
647
|
643
|
|
648
|
644
|
return details;
|