# Do Vercel Serverless Functions support WebSocket connections?

**Author:** Sam Ko

---

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)

---

[View full KB sitemap](/kb/sitemap.md)
