@nsshunt/stsfhirclient 2.0.39 → 2.0.40
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
|
@@ -13380,6 +13380,9 @@ var FhirSocketClient = class extends SocketIoClient {
|
|
|
13380
13380
|
this.options = options;
|
|
13381
13381
|
this.SetupWSSClient();
|
|
13382
13382
|
}
|
|
13383
|
+
LogDebugMessage(message) {
|
|
13384
|
+
if (this.options.verboseLogging === true) super.LogDebugMessage(message);
|
|
13385
|
+
}
|
|
13383
13386
|
SocketConnect(socket) {
|
|
13384
13387
|
this.LogDebugMessage(chalk.green(`FhirSocketClient:SocketConnect(): ID: [${this.id}] clientName: [${this.name}]: --> connected`));
|
|
13385
13388
|
if (this.options.joinRooms.length > 0 && socket) socket.emit("__STSjoinRoom", this.options.joinRooms);
|
|
@@ -13436,11 +13439,11 @@ var FhirSocketClient = class extends SocketIoClient {
|
|
|
13436
13439
|
return true;
|
|
13437
13440
|
}
|
|
13438
13441
|
if (attempts === resetAfterAttempts) {
|
|
13439
|
-
this.
|
|
13442
|
+
this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Resetting Socket. Attempt Number: [${attempts}]`));
|
|
13440
13443
|
this.ResetSocket();
|
|
13441
|
-
this.
|
|
13444
|
+
this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] Socket Reset. Attempt Number: [${attempts}]`));
|
|
13442
13445
|
await Sleep(retryDelay);
|
|
13443
|
-
this.
|
|
13446
|
+
this.LogWarningMessage(chalk.rgb(255, 165, 0)(`FhirSocketClient:WaitForSocketConnected(): ID: [${this.id}] clientName: [${this.name}] SetupSocket. Attempt Number: [${attempts}]`));
|
|
13444
13447
|
this.SetupSocket();
|
|
13445
13448
|
await Sleep(retryDelay);
|
|
13446
13449
|
}
|