@mega-yfue/eufy-sdk 0.3.0-beta.6 → 0.3.0-beta.8
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 +22 -3
- package/dist/index.js.map +2 -2
- package/dist/transport/mqtt/secure-mqtt.d.ts +10 -1
- package/package.json +1 -1
|
@@ -79,15 +79,24 @@ export interface SecureMqttOptions {
|
|
|
79
79
|
export declare class SecureMqtt extends EventEmitter implements RealtimeTransport {
|
|
80
80
|
readonly kind: "smqtt";
|
|
81
81
|
private client?;
|
|
82
|
+
/**
|
|
83
|
+
* The in-flight or established connect. A client ID is exclusive at the broker, so a second mqtt.js
|
|
84
|
+
* client under the same ID evicts the first, which reconnects and evicts it back, forever; `connect()`
|
|
85
|
+
* therefore hands a later caller this same attempt instead of opening a rival. Cleared when the
|
|
86
|
+
* attempt fails and on `disconnect()`, so a caller can still retry or deliberately reconnect.
|
|
87
|
+
*/
|
|
88
|
+
private connecting?;
|
|
82
89
|
private readonly o;
|
|
83
90
|
private readonly logger;
|
|
84
91
|
constructor(opts: SecureMqttOptions);
|
|
85
92
|
get id(): string;
|
|
93
|
+
/** Connect, joining the attempt in `connecting` when one is already opening or open. */
|
|
94
|
+
connect(): Promise<void>;
|
|
86
95
|
/**
|
|
87
96
|
* Open the broker connection, resolving once it is established. Pinned to a broker instance's IP, or
|
|
88
97
|
* to the plain hostname; only the former needs its own TLS shape, see `./bare-ip-tls.ts`.
|
|
89
98
|
*/
|
|
90
|
-
|
|
99
|
+
private open;
|
|
91
100
|
/**
|
|
92
101
|
* Subscribe every inbound leg this device's line uses (see `topics.ts` — one `/res` for most lines,
|
|
93
102
|
* four topics for `eufy_life`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.8",
|
|
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",
|