@nsshunt/stsfhirclient 1.0.51 → 1.0.53
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,17 +5049,12 @@ class FhirSocketClient {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
});
|
|
5051
5051
|
__publicField(this, "WaitForSocketConnected", async () => {
|
|
5052
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [Start]`));
|
|
5053
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Attempting to get socket`));
|
|
5054
5052
|
const socket = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
|
|
5055
|
-
if (socket) {
|
|
5056
|
-
|
|
5057
|
-
} else {
|
|
5058
|
-
console.log(chalk.gray(`WaitForSocketConnected(): No socket obtained yet ...`));
|
|
5053
|
+
if (socket && socket.connected === true) {
|
|
5054
|
+
return;
|
|
5059
5055
|
}
|
|
5060
5056
|
let connected = false;
|
|
5061
5057
|
while (!connected) {
|
|
5062
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection ...`));
|
|
5063
5058
|
const socketRetVal = __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
|
|
5064
5059
|
if (socketRetVal && socketRetVal.connected === true) {
|
|
5065
5060
|
connected = true;
|
|
@@ -5067,7 +5062,6 @@ class FhirSocketClient {
|
|
|
5067
5062
|
}
|
|
5068
5063
|
await Sleep(100);
|
|
5069
5064
|
}
|
|
5070
|
-
console.log(chalk.gray(`WaitForSocketConnected(): Waiting for socket connection [End]`));
|
|
5071
5065
|
});
|
|
5072
5066
|
__publicField(this, "CreateResource", async (resource, domainResource) => {
|
|
5073
5067
|
await this.WaitForSocketConnected();
|
|
@@ -5310,9 +5304,7 @@ class FhirSocketClient {
|
|
|
5310
5304
|
__privateSet(this, _options2, options);
|
|
5311
5305
|
__privateSet(this, _socketUtils, new SocketIoClientHelper(__privateGet(this, _options2).socketIoClientHelperOptions));
|
|
5312
5306
|
const clientName = v4();
|
|
5313
|
-
|
|
5314
|
-
__privateGet(this, _SetupWSSClient).call(this, clientName, []);
|
|
5315
|
-
}, 500);
|
|
5307
|
+
__privateGet(this, _SetupWSSClient).call(this, clientName, []);
|
|
5316
5308
|
}
|
|
5317
5309
|
get socket() {
|
|
5318
5310
|
return __privateGet(this, _socketUtils).GetSocket(__privateGet(this, _options2).socketClientName);
|