http-request-manager 18.5.4 → 18.5.7

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.
@@ -3286,8 +3286,9 @@ class HTTPManagerStateService extends ComponentStore {
3286
3286
  const attempt = i + 1;
3287
3287
  this.wsRetryAttempts.next(attempt);
3288
3288
  countdownEnder$.next();
3289
- if (this.apiOptions.ws?.jwtToken !== '' && this.apiOptions.ws?.wsServer !== '')
3290
- this.initWS(this.apiOptions.ws);
3289
+ if (this.apiOptions.ws?.wsServer) {
3290
+ this.httpManagerService.connect(this.apiOptions.ws, this.apiOptions.ws.jwtToken || '');
3291
+ }
3291
3292
  if (attempt === this.maxRetries) {
3292
3293
  this.wsNextRetry.next(0);
3293
3294
  // console.error(`🚨 FAILED CONNECTION: Tried #${attempt} times`);