@mega-yfue/eufy-sdk 0.4.0-beta.2 → 0.4.0-beta.3
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/index.js +14 -2
- package/dist/index.js.map +2 -2
- package/dist/transport/p2p/p2p-session.d.ts +11 -2
- package/package.json +1 -1
|
@@ -134,7 +134,10 @@ export declare class P2PSession extends EventEmitter {
|
|
|
134
134
|
private cloudLookup?;
|
|
135
135
|
/** Local outbound IPv4 reported inside LOOKUP_WITH_KEY requests. */
|
|
136
136
|
private selfHost?;
|
|
137
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* In-flight multi-datagram frame per data channel (see reassemble): the payload gathered so far under its
|
|
139
|
+
* parsed header, or, without a header, the start of a frame header cut by the datagram boundary.
|
|
140
|
+
*/
|
|
138
141
|
private readonly pendingByDataType;
|
|
139
142
|
/** Last delivered datagram sequence number per data type. */
|
|
140
143
|
private readonly lastSeqByType;
|
|
@@ -643,7 +646,13 @@ export declare class P2PSession extends EventEmitter {
|
|
|
643
646
|
*/
|
|
644
647
|
private abandonHole;
|
|
645
648
|
private clearReorderTimer;
|
|
646
|
-
/**
|
|
649
|
+
/**
|
|
650
|
+
* Reassemble one in-sequence datagram body into logical frames.
|
|
651
|
+
*
|
|
652
|
+
* Frames are packed back to back, so a frame header can itself be cut by a datagram boundary. The start
|
|
653
|
+
* of a header left at the end of a datagram is carried into the next one rather than discarded; dropping
|
|
654
|
+
* it would lose that frame and every frame after it until a datagram happened to begin on a header.
|
|
655
|
+
*/
|
|
647
656
|
private reassemble;
|
|
648
657
|
/**
|
|
649
658
|
* Forget where each data type's sequence numbering had reached, and drop any half-reassembled frame.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
3
|
+
"version": "0.4.0-beta.3",
|
|
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",
|