@mega-yfue/eufy-sdk 0.4.0-beta.5 → 0.4.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.
@@ -95,6 +95,8 @@ export declare class P2PSession extends EventEmitter {
95
95
  private connected;
96
96
  private connecting;
97
97
  private closed;
98
+ /** Whether a short receive buffer has been reported, so a reconnect does not repeat the same warning. */
99
+ private receiveBufferReported;
98
100
  private connectAddress?;
99
101
  private seqNumber;
100
102
  /**
@@ -274,6 +276,14 @@ export declare class P2PSession extends EventEmitter {
274
276
  */
275
277
  private decryptLevel2;
276
278
  get isConnected(): boolean;
279
+ /**
280
+ * Ask the OS for {@link RECEIVE_BUFFER_BYTES} on a bound socket, and warn once per session when it grants
281
+ * less or refuses.
282
+ *
283
+ * The request is made here rather than through `createSocket`'s `recvBufferSize`: Node applies that option
284
+ * inside the bind callback, where a refusal is thrown out of reach of this session and ends the process.
285
+ */
286
+ private requestReceiveBuffer;
277
287
  /** Open the socket and start the lookup → hole-punch handshake. */
278
288
  connect(): Promise<void>;
279
289
  /** Cached across every `P2PSession` in this process — the local outbound IPv4 doesn't vary by
@@ -16,7 +16,7 @@ export interface SharedLiveSourceOptions {
16
16
  makeStream: (ctx: {
17
17
  reassertWanted: () => boolean;
18
18
  }) => LiveStreamHandle;
19
- /** No-consumer grace before teardown (default 8000ms). Distinct from the stream's keepalive. */
19
+ /** No-consumer grace before teardown (default 8000ms; 0 schedules teardown next tick). Distinct from the stream's keepalive. */
20
20
  lingerMs?: number;
21
21
  /** Per-consumer bounded queue depth; overflow → drop-to-keyframe (default 900 ≈ 30s @ 30fps). */
22
22
  maxQueue?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.4.0-beta.5",
3
+ "version": "0.4.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",