@nsshunt/stsuxvue 1.0.84 → 1.0.85
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/stsuxvue.cjs
CHANGED
|
@@ -12961,6 +12961,7 @@ class RESTClientSubscriber {
|
|
|
12961
12961
|
this.Subscribe(this.#currentSubscriptions);
|
|
12962
12962
|
};
|
|
12963
12963
|
async #InvokeRESTAPI(subscription) {
|
|
12964
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#InvokeRESTAPI(): subscriptionKey: [${subscription.subscriptionKey.id}]`));
|
|
12964
12965
|
const { subscriptionKey } = subscription;
|
|
12965
12966
|
let url = "";
|
|
12966
12967
|
switch (subscriptionKey.topic) {
|
|
@@ -13049,6 +13050,7 @@ class RESTClientSubscriber {
|
|
|
13049
13050
|
}
|
|
13050
13051
|
return retVal.data;
|
|
13051
13052
|
} catch (error) {
|
|
13053
|
+
this.#LogErrorMessage(chalk.red(`RESTClientSubscriber:#InvokeRESTAPI(): subscriptionKey: [${subscription.subscriptionKey.id}], Error: [${error}]`));
|
|
13052
13054
|
return null;
|
|
13053
13055
|
}
|
|
13054
13056
|
} else {
|
|
@@ -13057,6 +13059,7 @@ class RESTClientSubscriber {
|
|
|
13057
13059
|
}
|
|
13058
13060
|
#GetData = async (subscription) => {
|
|
13059
13061
|
try {
|
|
13062
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#GetData(): subscriptionKey: [${subscription.subscriptionKey.id}`));
|
|
13060
13063
|
const retVal = await this.#InvokeRESTAPI(subscription);
|
|
13061
13064
|
if (retVal) {
|
|
13062
13065
|
const payload = {
|
|
@@ -13093,12 +13096,14 @@ class RESTClientSubscriber {
|
|
|
13093
13096
|
}, timeout);
|
|
13094
13097
|
}
|
|
13095
13098
|
#AddKeepAlive(subscription) {
|
|
13099
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#AddKeepAlive(): subscriptionKey: [${subscription.subscriptionKey.id}]`));
|
|
13096
13100
|
this.#RemoveKeepAlive(subscription);
|
|
13097
13101
|
const socketSubscribeKeepAlive = {
|
|
13098
13102
|
id: subscription.subscriptionKey.id
|
|
13099
13103
|
};
|
|
13100
13104
|
socketSubscribeKeepAlive.timeout = this.#SetupTimeout(socketSubscribeKeepAlive, subscription, this.#options.keepAlive ?? 1e3);
|
|
13101
13105
|
this.#socketSubscribeKeepAlive[subscription.subscriptionKey.id] = socketSubscribeKeepAlive;
|
|
13106
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#AddKeepAlive(): Getting Data: subscriptionKey: [${subscription.subscriptionKey.id}]`));
|
|
13102
13107
|
this.#GetData(subscription);
|
|
13103
13108
|
}
|
|
13104
13109
|
#RemoveKeepAlive(subscription) {
|