@mega-yfue/eufy-sdk 0.4.0-beta.18 → 0.4.0-beta.19
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 +12 -9
- package/dist/index.js.map +2 -2
- package/dist/transport/p2p/p2p-session.d.ts +6 -6
- package/package.json +1 -1
|
@@ -123,8 +123,8 @@ export declare class P2PSession extends EventEmitter {
|
|
|
123
123
|
private audioStalled;
|
|
124
124
|
private audioRetransmitTimer?;
|
|
125
125
|
private lastPongData?;
|
|
126
|
-
/** When
|
|
127
|
-
private
|
|
126
|
+
/** When the selected peer last answered outbound P2P traffic on this connection. */
|
|
127
|
+
private lastPeerAt?;
|
|
128
128
|
/** Whether the silence has already been stated, so it is traced once per connection rather than per read. */
|
|
129
129
|
private pathStaleTraced;
|
|
130
130
|
private lookupTimer?;
|
|
@@ -187,15 +187,15 @@ export declare class P2PSession extends EventEmitter {
|
|
|
187
187
|
/**
|
|
188
188
|
* How long this connection's path has been silent, or nothing where it has never answered.
|
|
189
189
|
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
190
|
+
* PONG and ACK from the selected peer prove the path answers outbound traffic. `undefined` means no such reply
|
|
191
|
+
* has arrived since connection, so silence alone does not establish a stale path.
|
|
192
192
|
*/
|
|
193
193
|
get pathSilentMs(): number | undefined;
|
|
194
194
|
/**
|
|
195
195
|
* Whether this path can still be committed to, on the evidence the heartbeat gives.
|
|
196
196
|
*
|
|
197
|
-
* False where
|
|
198
|
-
* not known to be dead, so it answers true.
|
|
197
|
+
* False where selected-peer replies arrived and then stopped for {@link PATH_SILENCE_MS}. A connection with
|
|
198
|
+
* no post-connect reply is not known to be dead, so it answers true.
|
|
199
199
|
*
|
|
200
200
|
* Traces the silence once per connection, on the read that first observes it.
|
|
201
201
|
*/
|
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.19",
|
|
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",
|