Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -1010,7 +1008,6 @@ Additional utility capabilities (see source code for detailed interfaces).
interface SinricProConfig {
appKey: string;
appSecret: string;
restoreDeviceStates?: boolean;
debug?: boolean;
}

Expand Down
2 changes: 0 additions & 2 deletions src/core/SinricPro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export class SinricPro extends EventEmitter implements ISinricPro {

this.config = {
serverUrl: SINRICPRO_SERVER_URL,
restoreDeviceStates: false,
debug: false,
...config,
};
Expand All @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions src/core/WebSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export interface WebSocketConfig {
serverUrl: string;
appKey: string;
deviceIds: string[];
restoreDeviceStates: boolean;
platform?: string;
sdkVersion?: string;
}
Expand Down Expand Up @@ -53,7 +52,6 @@ export class WebSocketClient extends EventEmitter {
const headers: Record<string, string> = {
appkey: this.config.appKey,
deviceids: this.config.deviceIds.join(';'),
restoredevicestates: this.config.restoreDeviceStates.toString(),
platform: this.config.platform || 'NodeJS',
SDKVersion: this.config.sdkVersion || version,
};
Expand Down
1 change: 0 additions & 1 deletion src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export interface SinricProConfig {
appKey: string;
appSecret: string;
restoreDeviceStates?: boolean;
debug?: boolean;
}

Expand Down
Loading