@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.
package/dist/stsfhirclient.mjs
CHANGED
|
@@ -5061,11 +5061,18 @@ class FhirSocketClient {
|
|
|
5061
5061
|
if (socket && socket.connected === true) {
|
|
5062
5062
|
return;
|
|
5063
5063
|
}
|
|
5064
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] Waiting for connection ...`));
|
|
5064
5065
|
let connected = false;
|
|
5066
|
+
let attempts = 0;
|
|
5065
5067
|
while (!connected) {
|
|
5068
|
+
attempts++;
|
|
5069
|
+
if (attempts % 10 === 0) {
|
|
5070
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] waiting for connection attempts: [${attempts}].`));
|
|
5071
|
+
}
|
|
5066
5072
|
const socketRetVal = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
|
|
5067
5073
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
5068
5074
|
connected = true;
|
|
5075
|
+
console.log(chalk.yellow(`FhirSocketClient:#WaitForSocketConnected(): ID: [${__privateGet(this, _id)}] clientName: [${__privateGet(this, _clientName)}] Connection completed after: [${attempts}] attempts.`));
|
|
5069
5076
|
break;
|
|
5070
5077
|
}
|
|
5071
5078
|
await Sleep(100);
|