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