@senior-gestao-empresarial/angular-components 6.12.0-67d9099d-c888-4b61-a14e-4c7c373707d6 → 6.12.0-cb91124b-ecdd-4d38-8aca-770d208b1882

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.
@@ -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
 
@@ -7582,6 +7582,16 @@ var WebsocketService = /** @class */ (function () {
7582
7582
  this.disconnected$.next();
7583
7583
  };
7584
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
+ }
7585
7595
  if (data.wasClean) {
7586
7596
  return;
7587
7597
  }