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