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. 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.