@mega-yfue/eufy-sdk 0.6.0-beta.6 → 0.6.0-beta.7

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.
@@ -376,8 +376,13 @@ export declare class SharedLiveSource {
376
376
  private isKeyframe;
377
377
  /**
378
378
  * Handle a consumer leaving. When the last one detaches (1→0), release the station-session user via
379
- * {@link SharedLiveSourceOptions.onIdle} (its own longer idle timer then arms) and arm the stream's
380
- * linger teardown.
379
+ * {@link SharedLiveSourceOptions.onIdle} (its own longer idle timer then arms) and, while a stream is
380
+ * still running, arm its linger teardown.
381
+ *
382
+ * A source that ended its own stream ends its consumers before tearing down, and a Readable consumer
383
+ * detaches only once it has reached EOF — after that teardown. The source is then already `stopped`,
384
+ * with its session claim released, and stays so: lingering would make the owner hand it out again
385
+ * instead of building a source that holds a session.
381
386
  */
382
387
  private onDetach;
383
388
  /** Refcount hit zero — arm the linger teardown. A new attach in the window cancels it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.6.0-beta.6",
3
+ "version": "0.6.0-beta.7",
4
4
  "description": "One typed TypeScript client for the Anker eufy v6 cloud — capability-driven devices, realtime events over P2P/MQTT/push, and live media",
5
5
  "license": "Apache-2.0",
6
6
  "author": "mega-yfue",