@nsshunt/stsfhirclient 2.0.39 → 2.0.41
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
|
@@ -9965,7 +9965,7 @@ var FhirRESTClient = class {
|
|
|
9965
9965
|
};
|
|
9966
9966
|
};
|
|
9967
9967
|
//#endregion
|
|
9968
|
-
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-
|
|
9968
|
+
//#region node_modules/@nsshunt/stssocketioutils/dist/tiny-emitter-Ci1ma0VV.js
|
|
9969
9969
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9970
9970
|
var require_tiny_emitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9971
9971
|
function E() {}
|
|
@@ -10592,8 +10592,8 @@ var BaseXHR = class extends Polling {
|
|
|
10592
10592
|
/**
|
|
10593
10593
|
* Sends data.
|
|
10594
10594
|
*
|
|
10595
|
-
* @param {String} data to send.
|
|
10596
|
-
* @param {Function} called upon flush.
|
|
10595
|
+
* @param {String} data - data to send.
|
|
10596
|
+
* @param {Function} fn - called upon flush.
|
|
10597
10597
|
* @private
|
|
10598
10598
|
*/
|
|
10599
10599
|
doWrite(data, fn) {
|
|
@@ -11324,7 +11324,7 @@ var SocketWithoutUpgrade = class SocketWithoutUpgrade extends Emitter {
|
|
|
11324
11324
|
/**
|
|
11325
11325
|
* Sends a packet.
|
|
11326
11326
|
*
|
|
11327
|
-
* @param {String} type
|
|
11327
|
+
* @param {String} type - packet type.
|
|
11328
11328
|
* @param {String} data.
|
|
11329
11329
|
* @param {Object} options.
|
|
11330
11330
|
* @param {Function} fn - callback function.
|
|
@@ -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
|
}
|