@senior-gestao-empresarial/angular-components 7.16.0 → 7.16.1

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.
@@ -8440,6 +8440,16 @@ var WebsocketService = /** @class */ (function () {
8440
8440
  };
8441
8441
  WebsocketService.prototype.handleOnWebSocketClose = function (data) {
8442
8442
  var _a, _b;
8443
+ if ((data === null || data === void 0 ? void 0 : data.reason) === '') {
8444
+ this.lostConnection = true;
8445
+ this.handleError('Failed to send message to ExecutorSubscribableChannel', new FrameImpl({
8446
+ command: data.type,
8447
+ headers: {
8448
+ message: data.reason
8449
+ }
8450
+ }));
8451
+ return;
8452
+ }
8443
8453
  if (((_a = data === null || data === void 0 ? void 0 : data.reason) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf("go away")) !== -1) {
8444
8454
  this.lostConnection = true;
8445
8455
  this.handleError('AuthenticationError', new FrameImpl({