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