@ikonai/sdk 0.0.6 → 0.0.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.
@@ -152,7 +152,7 @@ export interface TimeoutConfig {
152
152
  /**
153
153
  * Keepalive timeout in milliseconds.
154
154
  * If no keepalive is received within this time, the connection is considered dead.
155
- * Default: 125000 (125 seconds)
155
+ * Default: 35000 (35 seconds)
156
156
  */
157
157
  keepaliveTimeoutMs?: number;
158
158
  /**
@@ -220,7 +220,7 @@ export interface IkonClientConfig {
220
220
  }
221
221
  export declare const DEFAULT_SLOW_CONNECTION_THRESHOLD_MS = 5000;
222
222
  export declare const DEFAULT_CONNECTION_TIMEOUT_MS = 30000;
223
- export declare const DEFAULT_KEEPALIVE_TIMEOUT_MS = 125000;
223
+ export declare const DEFAULT_KEEPALIVE_TIMEOUT_MS = 35000;
224
224
  export declare const DEFAULT_RECONNECT_BACKOFF_MS = 500;
225
225
  export declare const DEFAULT_MAX_RECONNECT_ATTEMPTS = 6;
226
226
  export declare const DEFAULT_PROVISIONING_TIMEOUT_MS = 60000;
@@ -33,10 +33,9 @@ export declare function authenticateLocal(config: LocalConfig, signal?: AbortSig
33
33
  * 1. Parse URL query parameters (id → sessionId, ck → channelKey, all → parameters)
34
34
  * 2. Derive backend URL and space domain from hostname
35
35
  * 3. Fetch space info by domain
36
- * 4. Fetch channels for space
37
- * 5. Select channel (by channelKey or first available)
38
- * 6. POST /rooms/connect and poll until running
39
- * 7. Connect to the returned Ikon server URL
36
+ * 4. Request channel
37
+ * 5. POST /rooms/connect and poll until running
38
+ * 6. Connect to the returned Ikon server URL
40
39
  */
41
40
  export declare function authenticateBrowser(config: BrowserConfig, signal?: AbortSignal): Promise<AuthResult>;
42
41
  /**
@@ -46,9 +45,8 @@ export declare function authenticateBrowser(config: BrowserConfig, signal?: Abor
46
45
  * 1. POST /auth/api-key with { space, apiKey, user } → get JWT token
47
46
  * 2. Use token as Bearer auth for backend requests
48
47
  * 3. GET /profiles/me?space={spaceId} to create user profile
49
- * 4. Fetch channels for space
50
- * 5. Select channel (by channelKey or first available)
51
- * 6. POST /rooms/connect and poll until running
52
- * 7. Connect to the returned Ikon server URL
48
+ * 4. Request channel
49
+ * 5. POST /rooms/connect and poll until running
50
+ * 6. Connect to the returned Ikon server URL
53
51
  */
54
52
  export declare function authenticateApiKey(config: ApiKeyConfig, signal?: AbortSignal): Promise<AuthResult>;