Commit 4110eb9
fix: update ElevenLabs SDK and fix voice AI WebSocket disconnect
- Upgrade @elevenlabs/react 0.14.1 → 0.14.3
- Upgrade @elevenlabs/client 0.15.0 → 0.15.2
Root cause: ElevenLabs server now sends 'multimodal_message' WebSocket
events during session init. The old client (0.15.0) didn't handle this
event type — the server would close the connection, then the SDK cleanup
called socket.close() on an already-CLOSED socket, producing the repeated
"WebSocket is already in CLOSING or CLOSED state" errors.
0.15.2 adds multimodal_message handling, restoring the connection flow.
Also fixed: overrides.agent.first_message (snake_case) → firstMessage
(camelCase) — SDK reads i.firstMessage so the greeting was silently
dropped on every call start.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 724dfe5 commit 4110eb9
File tree
3 files changed
+17
-14
lines changed- src/components/DemoCall
3 files changed
+17
-14
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments