@nsshunt/stsfhirclient 1.0.52 → 1.0.53

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.
@@ -5049,17 +5049,12 @@ class FhirSocketClient {
5049
5049
  }
5050
5050
  });
5051
5051
  __publicField(this, "WaitForSocketConnected", async () => {
5052
- console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [Start]`));
5053
- console.log(chalk.gray(`WaitForSocketConnected(): Attempting to get socket`));
5054
5052
  const socket = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
5055
- if (socket) {
5056
- console.log(chalk.gray(`WaitForSocketConnected(): Socket obtained`));
5057
- } else {
5058
- console.log(chalk.gray(`WaitForSocketConnected(): No socket obtained yet ...`));
5053
+ if (socket && socket.connected === true) {
5054
+ return;
5059
5055
  }
5060
5056
  let connected = false;
5061
5057
  while (!connected) {
5062
- console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection ...`));
5063
5058
  const socketRetVal = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
5064
5059
  if (socketRetVal && socketRetVal.connected === true) {
5065
5060
  connected = true;
@@ -5067,7 +5062,6 @@ class FhirSocketClient {
5067
5062
  }
5068
5063
  await Sleep(100);
5069
5064
  }
5070
- console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [End]`));
5071
5065
  });
5072
5066
  __publicField(this, "CreateResource", async (resource, domainResource) => {
5073
5067
  await this.WaitForSocketConnected();