AI SDK 7.0.185 adds ordered binary WebSocket frames, supplying a low-level path for raw audio
AI SDK released 7.0.185 on November 30. Through `@ai-sdk/provider-utils` 5.0.86, `connectToWebSocket` gains an optional `onMessageBinary` callback so providers can receive binary frames as bytes in arrival order with text frames. The official example is raw audio.
Why it matters
Realtime generative interfaces increasingly coordinate text control messages with binary media on one connection. Preserving frame order helps prevent interface state, transcription, or playback progress from drifting away from the media stream, while avoiding a bespoke WebSocket demultiplexer in every provider.
A closer look
The change originates in provider-utils 5.0.86 and propagates through coordinated releases including gateway 4.0.158, ai 7.0.185, workflow 2.0.117, and Vue 4.0.185. Existing text handling remains available; a provider can opt into the new callback and process received binary data as bytes.
Who this is for
Teams building realtime voice agents, multimodal WebSocket providers, streaming playback interfaces, or custom AI SDK transports.
Original sources
- AI SDK official coordinated release ↗github.com
- @ai-sdk/gateway 4.0.158 coordinated release ↗github.com
- @ai-sdk/provider-utils 5.0.86 official release ↗github.com
Revisions & corrections (1)
— Catch-up publication for the November 30 coordinated release after the official release head became visible; binary-frame behavior and low-level limitations verified from official notes.