@mega-yfue/eufy-sdk 0.2.0 → 0.3.0-beta.1
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 +93 -24
- package/dist/index.js.map +3 -3
- package/dist/transport/p2p/p2p-session.d.ts +12 -2
- package/package.json +1 -1
|
@@ -128,8 +128,12 @@ export declare class P2PSession extends EventEmitter {
|
|
|
128
128
|
private lookupTimer?;
|
|
129
129
|
private heartbeatTimer?;
|
|
130
130
|
private connectTimer?;
|
|
131
|
-
/**
|
|
132
|
-
private
|
|
131
|
+
/** Extra sockets registered alongside {@link socket} while connecting; see {@link PUNCH_PROBE_SOCKETS}. */
|
|
132
|
+
private probeSockets;
|
|
133
|
+
/** Cloud lookup inputs resolved once for a connection. */
|
|
134
|
+
private cloudLookup?;
|
|
135
|
+
/** Local outbound IPv4 reported inside LOOKUP_WITH_KEY requests. */
|
|
136
|
+
private selfHost?;
|
|
133
137
|
/** In-flight multi-datagram frame per data channel (see onData). */
|
|
134
138
|
private readonly pendingByDataType;
|
|
135
139
|
/** Last datagram sequence number seen per dataType — used to detect a lost/reordered datagram
|
|
@@ -296,6 +300,8 @@ export declare class P2PSession extends EventEmitter {
|
|
|
296
300
|
*/
|
|
297
301
|
private static detectLocalIp;
|
|
298
302
|
private sendLookups;
|
|
303
|
+
/** Register a bound socket's own port with each configured cloud lookup address. */
|
|
304
|
+
private sendCloudLookup;
|
|
299
305
|
/**
|
|
300
306
|
* Route one inbound UDP datagram by its message type, tracing every non-DATA one and any type this session
|
|
301
307
|
* does not model.
|
|
@@ -309,6 +315,10 @@ export declare class P2PSession extends EventEmitter {
|
|
|
309
315
|
*/
|
|
310
316
|
private onMessage;
|
|
311
317
|
private beginCheckCam;
|
|
318
|
+
/** Bind additional UDP source ports before the first cloud lookup. */
|
|
319
|
+
private startPunchProbes;
|
|
320
|
+
/** Close all lookup sockets except the one that completed the handshake. */
|
|
321
|
+
private stopPunchProbes;
|
|
312
322
|
private onConnected;
|
|
313
323
|
/**
|
|
314
324
|
* Start the realtime media stream for a camera `channel` (the device's `device_channel`; defaults to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.1",
|
|
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",
|