WebSocket support in Vercel Functions is now generally available.
Since the public beta launched in late June, Vercel CDN has served 300 million WebSocket connections, and now serves 15 million per day.
Customers use WebSockets for AI chat, streaming, and realtime multiplayer apps. WebSockets also power AI Gateway's realtime models.
WebSocket connections follow the same limits and pricing as other Function invocations. With Active CPU pricing, CPU is billed only for the time spent processing messages.
Get started at the documentation.
Contributors
Mark Glagola, Ethan Niser, Casey Gowrie
Reference Architecture
Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.
- Agent stack: Build and operate agents with models, tools, and durable workflows.
- Web applications: Choose rendering, data, authentication, and caching approaches.
- Backends: Choose a runtime, connect services, and run background work.
Build with prompts
Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.