@nsshunt/stsfhirclient 1.0.49 → 1.0.50
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,14 +5051,15 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
5051
5051
|
}
|
|
5052
5052
|
});
|
|
5053
5053
|
__publicField(this, "WaitForSocketConnected", async () => {
|
|
5054
|
-
|
|
5054
|
+
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [Start]`));
|
|
5055
|
+
if (this.socket && this.socket.connected === true) {
|
|
5055
5056
|
return;
|
|
5056
5057
|
}
|
|
5057
5058
|
let connected = false;
|
|
5058
5059
|
while (!connected) {
|
|
5059
5060
|
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection ...`));
|
|
5060
5061
|
const socketRetVal = this.socket;
|
|
5061
|
-
if (socketRetVal.connected === true) {
|
|
5062
|
+
if (socketRetVal && socketRetVal.connected === true) {
|
|
5062
5063
|
connected = true;
|
|
5063
5064
|
break;
|
|
5064
5065
|
}
|