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