#Host

1 messages · Page 1 of 1 (latest)

abstract oliveBOT
#

Hi @astral grotto. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the provided knowledge sources, Vercel does not support acting as a WebSocket server directly with its Edge Functions or Serverless Functions. However, Vercel recommends using third-party solutions to enable real-time communication for deployments.

Here are some third-party providers that can help you integrate real-time communication into your Vercel application using Serverless Functions:

For example, you can use the Ably serverless WebSockets and Next.js fundamentals starter kit (https://vercel.com/templates/next.js/ably-nextjs-starter-kit) to get started with Ably, which offers a free plan.

To get started with Ably, follow these steps:

#
  1. Sign up (https://ably.com/signup?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo) or log in (https://ably.com/login?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo) to ably.com, and create a new app and copy the API key (https://faqs.ably.com/setting-up-and-managing-api-keys?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo).
  2. To deploy to Vercel (https://vercel.com), create a Vercel account.

For more information, you can visit the Ably website (https://ably.com?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo) or join the Ably Discord server (https://discord.gg/q89gDHZcBK).

For additional details, you can refer to the Vercel documentation on WebSocket limits (https://vercel.com/docs/limits/overview#websockets) and the guide on real-time data (https://vercel.com/guides/do-vercel-serverless-functions-support-websocket-connections).

If you need further assistance, feel free to ask!

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@velvet cloak kapa.ai is still learning and improving, please let us know how it did by reacting below