Using web sockets on Next.js | NO third party solution

Author: Fly․io
Published At: 2025-02-27T00:00:00
Length: 09:00

Summary

Description

Web sockets don't work out of the box on serverless architecture, so you have to rely on third-party or external service. But when deploying to Fly.io, you don't have to. Let's take a look at a sample Next.js app to see this in action.

Demo repository:

https://github.com/fly-apps/nextjs-websockets

Translated At: 2025-03-09T15:51:43Z

Request translate (One translation is about 5 minutes)

Version 3 (stable)

Optimized for a single speaker. Suitable for knowledge sharing or teaching videos.

Recommended Videos