@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.
@@ -7644,7 +7644,6 @@
7644
7644
  this.primitiveManagers.clear();
7645
7645
  this.connected$.next(false);
7646
7646
  if (!this.stompClient) return [3 /*break*/, 4];
7647
- this.stompClient.forceDisconnect();
7648
7647
  return [4 /*yield*/, this.stompClient.deactivate()];
7649
7648
  case 3:
7650
7649
  _d.sent();
@@ -7789,6 +7788,16 @@
7789
7788
  this.disconnected$.next();
7790
7789
  };
7791
7790
  WebsocketService.prototype.handleOnWebSocketClose = function (data) {
7791
+ if (data.reason && data.reason.toLowerCase().indexOf("go away") !== -1) {
7792
+ this.lostConnection = true;
7793
+ this.handleError('AuthenticationError', new stompjs.FrameImpl({
7794
+ command: data.type,
7795
+ headers: {
7796
+ message: data.reason
7797
+ }
7798
+ }));
7799
+ return;
7800
+ }
7792
7801
  if (data.wasClean) {
7793
7802
  return;
7794
7803
  }