@voxevolv/client 0.3.5 → 0.3.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to `@voxevolv/client` are recorded here.
4
4
 
5
+ ## 0.3.6 - 2026-09-23
6
+
7
+ - Enable initial connection retries by default for both `RealtimeSession` and
8
+ `RealtimeSession.create()`. Omitted `startupRetry` uses the existing three-attempt
9
+ policy with a 65-second overall deadline.
10
+ - Set `startupRetry: false` to retain a single startup attempt and its configured
11
+ `connect({ readyTimeoutMs })` budget. Explicit `true` and custom policies remain supported.
12
+
5
13
  ## 0.3.5 - 2026-09-23
6
14
 
7
15
  - Preserve global client command order across concurrent context keys and prevent
package/README.md CHANGED
@@ -26,7 +26,7 @@ Browsers without a build step can use the versioned bundle after publication:
26
26
  ```html
27
27
  <script type="module">
28
28
  import { RealtimeSession } from
29
- "https://cdn.jsdelivr.net/npm/@voxevolv/client@0.3.5/dist/browser/index.js";
29
+ "https://cdn.jsdelivr.net/npm/@voxevolv/client@0.3.6/dist/browser/index.js";
30
30
  </script>
31
31
  ```
32
32
 
@@ -41,7 +41,6 @@ const session = await RealtimeSession.create({
41
41
  // Use the hosted API directly when its lifecycle CORS policy is public.
42
42
  // A same-origin lifecycle proxy remains supported.
43
43
  apiBase: "https://YOUR_VOXEVOLV_HOST/v1",
44
- startupRetry: true,
45
44
  autoRejoin: true,
46
45
  tools: {
47
46
  present_attachment: (arguments_) => presentAttachment(arguments_),
@@ -65,7 +64,6 @@ play remote audio:
65
64
  ```ts
66
65
  const session = new RealtimeSession(credentials, {
67
66
  connect: { apiBase: "https://YOUR_VOXEVOLV_HOST/v1" },
68
- startupRetry: true,
69
67
  autoRejoin: true,
70
68
  });
71
69
  await session.connect({ microphone: true });
@@ -129,13 +127,19 @@ await session.connect({ waitForRemoteAudio: false });
129
127
 
130
128
  ## Initial connection retries
131
129
 
132
- Set `startupRetry: true` to let the SDK retry a session that has not connected
133
- successfully yet. The default policy makes three total attempts with 15, 20,
134
- and 25-second readiness budgets, waits one second before attempt two and three
130
+ Startup retries are enabled by default in SDK 0.3.6 for both `new RealtimeSession()`
131
+ and `RealtimeSession.create()`. Omit `startupRetry` or pass `true` to retry a
132
+ session that has not connected successfully yet. The default policy allows up to
133
+ three total attempts with 15, 20, and 25-second readiness budgets, waits one second
134
+ before attempt two and three
135
135
  seconds before attempt three, and enforces a 65-second overall deadline. The
136
136
  overall deadline also includes room connection, token renewal, microphone
137
137
  publication, the client hello, and remote-audio readiness.
138
138
 
139
+ Set `startupRetry: false` in the constructor or `create()` options for a single
140
+ startup attempt using the `readyTimeoutMs` supplied through `connect()` or the
141
+ constructor defaults. This does not disable `autoRejoin` after a successful connection.
142
+
139
143
  Attempt one uses the room token returned at session creation. Later attempts
140
144
  obtain a fresh room token for the same VoxEvolv session ID. Intermediate
141
145
  failures remain nonterminal; `connect()` rejects and the session enters
@@ -146,7 +150,6 @@ or a terminal error occurs.
146
150
  const session = await RealtimeSession.create({
147
151
  endpoint: "/api/voice-session",
148
152
  apiBase: "https://YOUR_VOXEVOLV_HOST/v1",
149
- startupRetry: true,
150
153
  autoRejoin: true,
151
154
  });
152
155