Skip to content

Commit 9c9e232

Browse files
authored
Update changelogs from fern repo (#4383)
1 parent 16a9e17 commit 9c9e232

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## 2.35.0
2+
**`(fix):`** Fix WebSocket binary message sending. Binary messages (e.g. audio bytes) are now
3+
sent as raw bytes instead of being JSON-serialized, which caused servers to reject
4+
them with CONFIG_DENIED.
5+
6+
7+
**`(fix):`** Fix WebSocket incoming message deserialization. `TryDeserialize` now passes
8+
`JsonSerializerOptions` so the generated literal property setters correctly
9+
validate const discriminator fields (e.g. `type: "transcript"` vs `type: "flushed"`)
10+
during deserialization.
11+
12+
13+
**`(feat):`** Add forward-compatible `UnknownMessage` event to WebSocket clients. When the server
14+
sends an event type not recognized by the SDK, it is now dispatched to the
15+
`UnknownMessage` event handler (as a `JsonElement`) instead of raising an exception.
16+
This allows SDKs to gracefully handle new server event types without requiring
17+
regeneration.
18+
19+

0 commit comments

Comments
 (0)