@kwirthmagnify/kwirth-provider-http-pull-push 0.1.3 → 0.1.4
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/back.js +7 -0
- package/package.json +1 -1
package/back.js
CHANGED
|
@@ -331,6 +331,13 @@ var HttpPullPushProvider = class {
|
|
|
331
331
|
this.configRouter = import_express.default.Router();
|
|
332
332
|
this.configs = /* @__PURE__ */ new Map();
|
|
333
333
|
this.subscribers = /* @__PURE__ */ new Map();
|
|
334
|
+
/*
|
|
335
|
+
Lo que este provider sabe de si mismo: cuantos consumidores tiene AHORA. El contrato
|
|
336
|
+
(IProvider.getStats, opcional desde kwirth-common-back 0.5.50) pide que sea BARATO — se devuelve
|
|
337
|
+
lo que ya se tiene, no se calcula —, y de aqui sale que kwirth pueda decir si esto esta siendo
|
|
338
|
+
consumido o emitiendo para nadie.
|
|
339
|
+
*/
|
|
340
|
+
this.getStats = () => ({ subscribers: this.subscribers.size });
|
|
334
341
|
this.pollers = /* @__PURE__ */ new Map();
|
|
335
342
|
this.started = false;
|
|
336
343
|
// ── IProvider ───────────────────────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"id": "http-pull-push",
|
|
8
8
|
"name": "@kwirthmagnify/kwirth-provider-http-pull-push",
|
|
9
9
|
"displayName": "HTTP Pull-Push Provider",
|
|
10
|
-
"version": "0.1.
|
|
10
|
+
"version": "0.1.4",
|
|
11
11
|
"description": "HTTP polling provider for Kwirth — pulls remote HTTP endpoints on a schedule and pushes each result to the subscribed channels",
|
|
12
12
|
"website": "https://kwirthmagnify.dev",
|
|
13
13
|
"requiresRestart": true,
|