---
title: Do Vercel Serverless Functions support WebSocket connections?
description: Information on Vercel's support for WebSocket connections with Vercel Functions.
url: /kb/guide/do-vercel-serverless-functions-support-websocket-connections
canonical_url: "https://vercel.com/kb/guide/do-vercel-serverless-functions-support-websocket-connections"
published: 2025-11-03
last_updated: 2026-06-22
authors: Sam Ko
related:
  - /docs/functions/limitations
  - /docs/functions/websockets
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Backends](https://vercel.com/docs/frameworks/backend?from=related) — Vercel supports a wide range of the most popular backend frameworks, optimizing how your application builds and runs no
- [Functions](https://vercel.com/docs/functions?from=related) — Run server-side code on Vercel without managing a server.
- [Queues](https://vercel.com/docs/queues?from=related) — Durable event streaming for serverless. Publish messages to topics and process them reliably with managed consumer group
- [Getting Started](https://vercel.com/docs/functions/quickstart?from=related) — Build your first Vercel Function in a few steps.
- [Configuring Functions](https://vercel.com/docs/functions/configuring-functions?from=related) — Learn how to configure the runtime, region, maximum duration, and memory for Vercel Functions.
- [Can I deploy Discord bots to Vercel?](https://vercel.com/kb/guide/can-i-deploy-discord-bots-to-vercel?from=related) — Learn about whether it's possible to deploy Discord Bots to Vercel.
- [Is SQLite supported in Vercel?](https://vercel.com/kb/guide/is-sqlite-supported-in-vercel?from=related) — SQLite is a popular and fast database engine. In this article, we discuss whether it can be used in a serverless environ
- [Why does npm run start not work on Vercel?](https://vercel.com/kb/guide/npm-run-start-not-working?from=related) — Information on why commands that start servers may not work with Vercel.
- [Publish and subscribe to realtime data on Vercel](https://vercel.com/kb/guide/publish-and-subscribe-to-realtime-data-on-vercel?from=related) — Learn how to publish and subscribe to realtime data on Vercel with WebSockets, SSE, Redis, and Queues, and when a manage
- [How do I lower my Vercel Function execution time?](https://vercel.com/kb/guide/how-do-i-lower-my-serverless-function-execution-time?from=related) — Learn how to lower your Serverless Function execution time.

Full cross-link map for this page: [/kb/guide/do-vercel-serverless-functions-support-websocket-connections.graph.md](/kb/guide/do-vercel-serverless-functions-support-websocket-connections.graph.md)
<!-- /docsgraph:related -->


Vercel Functions natively support WebSocket connections for realtime features such as interactive AI streaming, chat, and collaborative apps.

Established connections are pinned to the Function for its [maximum duration](https://vercel.com/docs/functions/limitations#max-duration). Future connections are not guaranteed to connect to the same Function. For durable state across WebSocket connections, we recommend using [Redis from the Vercel Marketplace](https://vercel.com/marketplace?category=databases).

## Learn more

- [WebSockets on Vercel Functions](https://vercel.com/docs/functions/websockets)