@nsshunt/stsfhirclient 1.0.57 → 1.0.58
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.
|
@@ -5063,11 +5063,18 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
5063
5063
|
if (socket && socket.connected === true) {
|
|
5064
5064
|
return;
|
|
5065
5065
|
}
|
|
5066
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] Waiting for connection ...`));
|
|
5066
5067
|
let connected = false;
|
|
5068
|
+
let attempts = 0;
|
|
5067
5069
|
while (!connected) {
|
|
5070
|
+
attempts++;
|
|
5071
|
+
if (attempts % 10 === 0) {
|
|
5072
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] waiting for connection attempts: [${attempts}].`));
|
|
5073
|
+
}
|
|
5068
5074
|
const socketRetVal = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
|
|
5069
5075
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
5070
5076
|
connected = true;
|
|
5077
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] Connection completed after: [${attempts}] attempts.`));
|
|
5071
5078
|
break;
|
|
5072
5079
|
}
|
|
5073
5080
|
await stsutils.Sleep(100);
|