@senior-gestao-empresarial/angular-components 6.12.0-cdee7359-3bca-4813-b06f-c65cc860eea4 → 7.0.0
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/bundles/senior-gestao-empresarial-angular-components.umd.js +10 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js.map +1 -1
- package/esm2015/components/websocket/websocket.service.js +12 -3
- package/esm5/components/websocket/websocket.service.js +12 -3
- package/fesm2015/senior-gestao-empresarial-angular-components.js +11 -2
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +11 -2
- package/fesm5/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
13
13
|
import { HttpInterceptorModule } from '@seniorsistemas/platform-components';
|
|
14
14
|
import { user } from '@seniorsistemas/senior-platform-data';
|
|
15
15
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
16
|
-
import { Client } from '@stomp/stompjs';
|
|
16
|
+
import { Client, FrameImpl } from '@stomp/stompjs';
|
|
17
17
|
import * as SockJS from 'sockjs-client';
|
|
18
18
|
import { get } from 'js-cookie';
|
|
19
19
|
|
|
@@ -7438,7 +7438,6 @@ var WebsocketService = /** @class */ (function () {
|
|
|
7438
7438
|
this.primitiveManagers.clear();
|
|
7439
7439
|
this.connected$.next(false);
|
|
7440
7440
|
if (!this.stompClient) return [3 /*break*/, 4];
|
|
7441
|
-
this.stompClient.forceDisconnect();
|
|
7442
7441
|
return [4 /*yield*/, this.stompClient.deactivate()];
|
|
7443
7442
|
case 3:
|
|
7444
7443
|
_d.sent();
|
|
@@ -7583,6 +7582,16 @@ var WebsocketService = /** @class */ (function () {
|
|
|
7583
7582
|
this.disconnected$.next();
|
|
7584
7583
|
};
|
|
7585
7584
|
WebsocketService.prototype.handleOnWebSocketClose = function (data) {
|
|
7585
|
+
if (data.reason && data.reason.toLowerCase().indexOf("go away") !== -1) {
|
|
7586
|
+
this.lostConnection = true;
|
|
7587
|
+
this.handleError('AuthenticationError', new FrameImpl({
|
|
7588
|
+
command: data.type,
|
|
7589
|
+
headers: {
|
|
7590
|
+
message: data.reason
|
|
7591
|
+
}
|
|
7592
|
+
}));
|
|
7593
|
+
return;
|
|
7594
|
+
}
|
|
7586
7595
|
if (data.wasClean) {
|
|
7587
7596
|
return;
|
|
7588
7597
|
}
|