@chat21/chat21-ionic 3.4.27-rc21 → 3.4.27-rc23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +6 -11
- package/src/app/services/websocket/websocket-js.ts +59 -552
- package/src/app/services/websocket/websocket-js_old.ts +578 -0
- package/src/app/services/websocket/websocket.service.ts +9 -10
- package/src/app/services/websocket/websocket.worker.ts +232 -0
- package/src/assets/js/chat21client.js +34 -0
- package/src/assets/js/mqtt-keepalive-worker.js +52 -0
- package/src/assets/test.html +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
### **Copyrigth**:
|
|
9
9
|
*Tiledesk SRL*
|
|
10
10
|
|
|
11
|
+
# 3.4.27-rc23
|
|
12
|
+
- **added**: keepAlive worker for MQTT connection
|
|
13
|
+
|
|
14
|
+
# 3.4.27-rc22
|
|
15
|
+
- **added**: new WsWorker to manage iframe chrome throttling while tab is in background or hidden
|
|
16
|
+
|
|
11
17
|
# 3.4.27-rc21
|
|
12
18
|
- **changed**: new wss reconnect and timeout keepalive
|
|
13
19
|
- **bug-fixed**: cannot route if senderFullaname contains /
|
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -543,10 +543,13 @@ export class AppComponent implements OnInit {
|
|
|
543
543
|
this.statusBar.styleLightContent();
|
|
544
544
|
this.navService.init(this.sidebarNav, this.detailNav);
|
|
545
545
|
this.tiledeskAuthService.initialize(this.appConfigProvider.getConfig().apiUrl);
|
|
546
|
-
this.
|
|
547
|
-
|
|
546
|
+
this.tiledeskService.initialize(this.appConfigProvider.getConfig().apiUrl)
|
|
547
|
+
this.projectService.initialize(this.appConfigProvider.getConfig().apiUrl);
|
|
548
|
+
this.contactsService.initialize(this.appConfigProvider.getConfig().apiUrl)
|
|
549
|
+
|
|
548
550
|
// this.currentUserService.initialize();
|
|
549
551
|
this.chatManager.initialize();
|
|
552
|
+
this.messagingAuthService.initialize();
|
|
550
553
|
this.presenceService.initialize(this.tenant);
|
|
551
554
|
this.typingService.initialize(this.tenant);
|
|
552
555
|
|
|
@@ -1181,7 +1184,6 @@ export class AppComponent implements OnInit {
|
|
|
1181
1184
|
// this.logger.info('initialize FROM [APP-COMP] - [APP-COMP] - GO-ONLINE isOnline ', this.isOnline);
|
|
1182
1185
|
// clearTimeout(this.timeModalLogin);
|
|
1183
1186
|
const tiledeskToken = this.tiledeskAuthService.getTiledeskToken();
|
|
1184
|
-
const serverBaseURL = this.appConfigProvider.getConfig().apiUrl
|
|
1185
1187
|
// const supportmode = this.appConfigProvider.getConfig().supportMode;
|
|
1186
1188
|
// this.logger.log('[APP-COMP] - GO-ONLINE - supportmode ', supportmode);
|
|
1187
1189
|
// if (supportmode === true) {
|
|
@@ -1195,10 +1197,6 @@ export class AppComponent implements OnInit {
|
|
|
1195
1197
|
this.chatManager.setTiledeskToken(tiledeskToken);
|
|
1196
1198
|
this.chatManager.setCurrentUser(currentUser);
|
|
1197
1199
|
|
|
1198
|
-
this.tiledeskService.initialize(serverBaseURL)
|
|
1199
|
-
this.projectService.initialize(serverBaseURL)
|
|
1200
|
-
this.projectUsersService.initialize(serverBaseURL)
|
|
1201
|
-
this.contactsService.initialize(serverBaseURL)
|
|
1202
1200
|
// this.chatManager.startApp();
|
|
1203
1201
|
|
|
1204
1202
|
|
|
@@ -1301,10 +1299,7 @@ export class AppComponent implements OnInit {
|
|
|
1301
1299
|
const WS_URL = appconfig.wsUrl + '?token=' + tiledeskToken
|
|
1302
1300
|
this.logger.log('[WEBSOCKET-JS] connetWebsocket called in [PROJECT-ITEM] wsUrl ', WS_URL)
|
|
1303
1301
|
this.webSocketJs.init(
|
|
1304
|
-
WS_URL
|
|
1305
|
-
undefined,
|
|
1306
|
-
undefined,
|
|
1307
|
-
undefined
|
|
1302
|
+
WS_URL
|
|
1308
1303
|
);
|
|
1309
1304
|
}
|
|
1310
1305
|
|