@nsshunt/ststestrunner 1.0.24 → 1.0.26

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.
@@ -11964,19 +11964,25 @@ var __privateWrapper = (obj, member, setter, getter) => ({
11964
11964
  }
11965
11965
  });
11966
11966
  __publicField2(this, "WaitForSocketConnected", async () => {
11967
- if (this.socket.connected === true) {
11968
- return;
11967
+ console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [Start]`));
11968
+ console.log(chalk.gray(`WaitForSocketConnected(): Attempting to get socket`));
11969
+ const socket = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
11970
+ if (socket) {
11971
+ console.log(chalk.gray(`WaitForSocketConnected(): Socket obtained`));
11972
+ } else {
11973
+ console.log(chalk.gray(`WaitForSocketConnected(): No socket obtained yet ...`));
11969
11974
  }
11970
11975
  let connected = false;
11971
11976
  while (!connected) {
11972
11977
  console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection ...`));
11973
- const socketRetVal = this.socket;
11974
- if (socketRetVal.connected === true) {
11978
+ const socketRetVal = __privateGet$1(this, _socketUtils).GetSocket(__privateGet$1(this, _options2).socketClientName);
11979
+ if (socketRetVal && socketRetVal.connected === true) {
11975
11980
  connected = true;
11976
11981
  break;
11977
11982
  }
11978
11983
  await stsutils.Sleep(100);
11979
11984
  }
11985
+ console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [End]`));
11980
11986
  });
11981
11987
  __publicField2(this, "CreateResource", async (resource, domainResource) => {
11982
11988
  await this.WaitForSocketConnected();