@apocaliss92/nodelink-js 0.4.31 → 0.4.32
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/{chunk-XVFCEFM6.js → chunk-5Z7NVPV6.js} +21 -1
- package/dist/chunk-5Z7NVPV6.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +20 -0
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XVFCEFM6.js.map +0 -1
|
@@ -11439,6 +11439,13 @@ var ReolinkBaichuanApi = class _ReolinkBaichuanApi {
|
|
|
11439
11439
|
* Once closed, the API instance should not be reused.
|
|
11440
11440
|
*/
|
|
11441
11441
|
_closed = false;
|
|
11442
|
+
/**
|
|
11443
|
+
* Off-handle for the auto-bridge between the global email-push bus
|
|
11444
|
+
* and this api's `simpleEventListeners`. Set in the constructor
|
|
11445
|
+
* when `emailPushCameraId` is provided; released in `close()`.
|
|
11446
|
+
* `undefined` means no bridge was requested for this api.
|
|
11447
|
+
*/
|
|
11448
|
+
emailPushAutoBridgeOff;
|
|
11442
11449
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
11443
11450
|
// SOCKET POOL - Tag-based socket management
|
|
11444
11451
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -12781,6 +12788,12 @@ var ReolinkBaichuanApi = class _ReolinkBaichuanApi {
|
|
|
12781
12788
|
this.rebootAfterConsecutiveEconnreset = Math.floor(econnresetThreshold);
|
|
12782
12789
|
}
|
|
12783
12790
|
this.setupGeneralClientListeners();
|
|
12791
|
+
if (opts.emailPushCameraId) {
|
|
12792
|
+
this.emailPushAutoBridgeOff = this.subscribeEmailPushEvents({
|
|
12793
|
+
cameraId: opts.emailPushCameraId,
|
|
12794
|
+
channel: opts.emailPushChannel ?? 0
|
|
12795
|
+
});
|
|
12796
|
+
}
|
|
12784
12797
|
}
|
|
12785
12798
|
/**
|
|
12786
12799
|
* CGI forward: fetch RTSP URL for a channel via `GetRtspUrl`.
|
|
@@ -13904,6 +13917,13 @@ var ReolinkBaichuanApi = class _ReolinkBaichuanApi {
|
|
|
13904
13917
|
async close(options) {
|
|
13905
13918
|
if (this._closed) return;
|
|
13906
13919
|
this._closed = true;
|
|
13920
|
+
if (this.emailPushAutoBridgeOff) {
|
|
13921
|
+
try {
|
|
13922
|
+
this.emailPushAutoBridgeOff();
|
|
13923
|
+
} catch {
|
|
13924
|
+
}
|
|
13925
|
+
this.emailPushAutoBridgeOff = void 0;
|
|
13926
|
+
}
|
|
13907
13927
|
if (this.sessionGuardIntervalTimer) {
|
|
13908
13928
|
clearInterval(this.sessionGuardIntervalTimer);
|
|
13909
13929
|
this.sessionGuardIntervalTimer = void 0;
|
|
@@ -24733,4 +24753,4 @@ export {
|
|
|
24733
24753
|
isTcpFailureThatShouldFallbackToUdp,
|
|
24734
24754
|
autoDetectDeviceType
|
|
24735
24755
|
};
|
|
24736
|
-
//# sourceMappingURL=chunk-
|
|
24756
|
+
//# sourceMappingURL=chunk-5Z7NVPV6.js.map
|