T
tRPC

❓-help

How do I setup subscriptions with websockets in Next.js 14 app router?

FFinn1/30/2024
All I've found were some older examples for the pages router which for me were not very understandable or I'm just stupid. For the most part I'm having trouble understanding how exactly the websocket server is started. Does it start with Next.js or is it something that you have to seperatly? Would be glad if someone can give me some insight.

Looking for more? Join the community!