@nsshunt/stsfhirclient 2.0.39 → 2.0.40

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.
@@ -13388,6 +13388,9 @@ var FhirSocketClient = class extends SocketIoClient {
13388
13388
  this.options = options;
13389
13389
  this.SetupWSSClient();
13390
13390
  }
13391
+ LogDebugMessage(message) {
13392
+ if (this.options.verboseLogging === true) super.LogDebugMessage(message);
13393
+ }
13391
13394
  SocketConnect(socket) {
13392
13395
  this.LogDebugMessage(chalk.green(`FhirSocketClient:SocketConnect(): ID: [${this.id}] clientName: [${this.name}]: --> connected`));
13393
13396
  if (this.options.joinRooms.length > 0 && socket) socket.emit("__STSjoinRoom", this.options.joinRooms);
@@ -13444,11 +13447,11 @@ var FhirSocketClient = class extends SocketIoClient {
13444
13447
  return true;
13445
13448
  }
13446
13449
  if (attempts === resetAfterAttempts) {
13447
- this.LogDebugMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Resetting Socket. Attempt Number: [${attempts}]`));
13450
+ this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Resetting Socket. Attempt Number: [${attempts}]`));
13448
13451
  this.ResetSocket();
13449
- this.LogDebugMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Socket Reset. Attempt Number: [${attempts}]`));
13452
+ this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Socket Reset. Attempt Number: [${attempts}]`));
13450
13453
  await (0, _nsshunt_stsutils.Sleep)(retryDelay);
13451
- this.LogDebugMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] SetupSocket. Attempt Number: [${attempts}]`));
13454
+ this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] SetupSocket. Attempt Number: [${attempts}]`));
13452
13455
  this.SetupSocket();
13453
13456
  await (0, _nsshunt_stsutils.Sleep)(retryDelay);
13454
13457
  }