# Workflow SDK now writes over WebSockets on Vercel

DevFeed: [Workflow SDK now writes over WebSockets on Vercel](<https://devfeed.tech/articles/workflow-sdk-now-writes-over-websockets-on-vercel-124310.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/workflow-writes-now-use-websockets-on-vercel>)

Author: Shalabh Chaturvedi

Published: 2026-11-09T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [costs](<https://devfeed.tech/tags/costs.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [event](<https://devfeed.tech/tags/event.md>), [existing](<https://devfeed.tech/tags/existing.md>), [faster](<https://devfeed.tech/tags/faster.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [http](<https://devfeed.tech/tags/http.md>), [performance](<https://devfeed.tech/tags/performance.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [stream](<https://devfeed.tech/tags/stream.md>), [token](<https://devfeed.tech/tags/token.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>), [vercel](<https://devfeed.tech/tags/vercel.md>), [websockets](<https://devfeed.tech/tags/websockets.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

Workflow SDK 5.2.0 and later sends event and stream writes to Vercel Workflows over a WebSocket by default, reducing HTTP requests. Upgrading and deploying is sufficient; new runs use the deployed version, while in-flight runs finish on their starting deployment. Existing streaming code continues to work, and bursts of chunks are sent once the connection opens. In a benchmark replaying an AI agent's token stream, v5.2.0 delivered the full response 4.2x faster than v4.8.12, with no chunk delayed over a second. Step start and completion writes also use the connection, which the source says reduces requests and can improve performance and costs. The queue handler opens a connection for each delivery. Users upgrading from 4.x should follow the major-version upgrade guide.

## Source excerpt

The Workflow SDK now sends event writes and stream writes to Vercel Workflows over a WebSocket by default, replacing one HTTP request per write, or per write group for streams. No code change is needed beyond upgrading to workflow@5.2.0 or later. Once you deploy the upgrade, new runs use it. In-flight runs finish on the deployment they started on. Existing streaming code works as is. A step that writes a burst of chunks, like AI tokens, sends them over the WebSocket once it opens: Streams keep pace with AI output In a benchmark replaying an AI agent's token stream, v5.2.0, which writes streams over a WebSocket by default, delivered the full response 4.2x faster than v4.8.12, with no chunk delayed over a second. Fewer HTTP requests for event writes Every step start and completion is an event write, now sent over the WebSocket, so workflows with many steps make fewer HTTP requests. The added efficiency also improves performance and reduces costs. The queue handler opens the connection for every delivery. Get started Read the Vercel World documentation to get started. If you're on 4.x, start with the upgrade guide, since v5 is a major release. Read more