{"slug": "vercel-websockets-go-ga-after-300-million-connections", "title": "Vercel WebSockets Go GA After 300 Million Connections", "summary": "Vercel made WebSocket support in Vercel Functions generally available on Oct. 20, 2026, four months after the June 22 beta, reporting that its CDN has served 300 million WebSocket connections since the beta and now handles 15 million a day. Connections follow the same limits and pricing as other Function invocations, with Active CPU pricing billing CPU only for time spent processing messages, and setup requires no Vercel-specific configuration — the `ws` library, Socket.IO, Express, Hono, h3, Nitro and Bun's `Bun.serve()` all work. Vercel's documentation warns that each connection is pinned to one function instance for its lifetime and closes when the function hits its maximum duration, so developers must keep rooms, presence, counters and pub/sub state in an external store such as Marketplace Redis and build reconnect logic.", "body_md": "# Vercel WebSockets Go GA After 300 Million Connections\n\nVercel made WebSocket support in Functions generally available Oct. 20, saying its CDN has served 300 million connections since the June beta.\n\nVercel made WebSocket support in Vercel Functions generally available Oct. 20, four months after opening a public beta. Apps can now hold open connections for chat, streaming and multiplayer features on a supported path ([Vercel changelog, Oct. 20, 2026](https://vercel.com/changelog/websocket-support-is-now-generally-available)).\n\n## What Shipped\n\nVercel said its CDN has served 300 million WebSocket connections since the beta launched June 22, and now serves 15 million a day. Vercel named AI chat, streaming and realtime multiplayer apps as the main uses. It said WebSockets also power the realtime models in its AI Gateway.\n\nVercel said connections follow the same limits and pricing as other Function invocations. Under Active CPU pricing, CPU is billed only for the time spent processing messages. Vercel’s documentation lists WebSockets as available on all plans.\n\nSetup needs no Vercel-specific configuration. Vercel’s docs show the `ws` library upgrading connections from a Node.js HTTP server exported from `api/ws.ts`, and say Socket.IO, Express, Hono, h3, Nitro and Bun’s native `Bun.serve()` API also work. Socket.IO clients must set `transports: ['websocket']`. The library defaults to HTTP long-polling.\n\n## What the Docs Say to Plan For\n\nThe documentation is more cautious than the changelog. Each connection is pinned to one function instance for its lifetime. New connections are not guaranteed to reach the same instance. Vercel tells developers to keep rooms, presence, counters and pub/sub state in an external store, and names Redis from its Marketplace as one option.\n\nConnections close when a function reaches its maximum duration. Clients need reconnect logic that resubscribes and reloads state. The docs also say existing connections stay on the previous deployment after a new deploy until they close. The Bun path has listed gaps too: headers passed to `server.upgrade()` are not applied to the upgrade response, and the `drain` handler is not invoked.\n\n## The Take\n\nThe 15 million daily connections show demand. The docs describe a stateless fleet with sockets pinned to instances. A chat demo fits that model. A game room or collaborative editor needs an external store, plus a plan for the connection that dies when a function times out.\n\nVercel WebSockets suit simple fan-out. They do not replace coordination infrastructure.\n\n## Key Takeaways\n\n- Vercel WebSocket support reached general availability Oct. 20, 2026.\n- Vercel reported 300 million connections since the June 22 beta and 15 million a day now.\n- Pricing and limits match other Function invocations, with CPU billed only while processing messages.\n- Keep shared state outside the function. Handle reconnects when a connection closes.", "url": "https://wpnews.pro/news/vercel-websockets-go-ga-after-300-million-connections", "canonical_source": "https://firerun.io/vercel-websockets-ga-2026/", "published_at": "2026-10-21 00:00:00+00:00", "updated_at": "2026-10-21 09:41:06.894345+00:00", "lang": "en", "topics": ["developer-tools", "ai-infrastructure", "ai-agents"], "entities": ["Vercel", "Vercel Functions", "Vercel AI Gateway", "Socket.IO", "Express", "Hono", "Nitro", "Bun"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/vercel-websockets-go-ga-after-300-million-connections", "markdown": "https://wpnews.pro/news/vercel-websockets-go-ga-after-300-million-connections.md", "text": "https://wpnews.pro/news/vercel-websockets-go-ga-after-300-million-connections.txt", "jsonld": "https://wpnews.pro/news/vercel-websockets-go-ga-after-300-million-connections.jsonld"}}