diff --git a/llms-full.txt b/llms-full.txt index ad5e22d..15f20d6 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -172,7 +172,6 @@ await SinricPro.begin({ appKey: APP_KEY, appSecret: APP_SECRET, // Optional settings: - // restoreDeviceStates: false, // Restore device states on reconnect // debug: false, // Enable debug logging }); @@ -224,7 +223,6 @@ const instance = SinricPro.getInstance(); interface SinricProConfig { appKey: string; // Required: UUID from portal appSecret: string; // Required: Secret key from portal - restoreDeviceStates?: boolean; // Optional: Restore states on reconnect (default: false) debug?: boolean; // Optional: Enable debug logs (default: false) // Note: serverUrl is NOT configurable (hardcoded to testws.sinric.pro) } @@ -1010,7 +1008,6 @@ Additional utility capabilities (see source code for detailed interfaces). interface SinricProConfig { appKey: string; appSecret: string; - restoreDeviceStates?: boolean; debug?: boolean; } diff --git a/src/core/SinricPro.ts b/src/core/SinricPro.ts index 0b188d1..bf4ed2f 100644 --- a/src/core/SinricPro.ts +++ b/src/core/SinricPro.ts @@ -79,7 +79,6 @@ export class SinricPro extends EventEmitter implements ISinricPro { this.config = { serverUrl: SINRICPRO_SERVER_URL, - restoreDeviceStates: false, debug: false, ...config, }; @@ -98,7 +97,6 @@ export class SinricPro extends EventEmitter implements ISinricPro { serverUrl: this.config.serverUrl, appKey: this.config.appKey, deviceIds: Array.from(this.devices.keys()), - restoreDeviceStates: this.config.restoreDeviceStates, }); this.setupWebSocketHandlers(); diff --git a/src/core/WebSocketClient.ts b/src/core/WebSocketClient.ts index b397af9..7e886aa 100644 --- a/src/core/WebSocketClient.ts +++ b/src/core/WebSocketClient.ts @@ -16,7 +16,6 @@ export interface WebSocketConfig { serverUrl: string; appKey: string; deviceIds: string[]; - restoreDeviceStates: boolean; platform?: string; sdkVersion?: string; } @@ -53,7 +52,6 @@ export class WebSocketClient extends EventEmitter { const headers: Record = { appkey: this.config.appKey, deviceids: this.config.deviceIds.join(';'), - restoredevicestates: this.config.restoreDeviceStates.toString(), platform: this.config.platform || 'NodeJS', SDKVersion: this.config.sdkVersion || version, }; diff --git a/src/core/types.ts b/src/core/types.ts index 97c001f..10067b0 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -5,7 +5,6 @@ export interface SinricProConfig { appKey: string; appSecret: string; - restoreDeviceStates?: boolean; debug?: boolean; }