Can't connect mine could you help me! you do have discord anything like that! I"m using next.js 15 app router. as it's stateless so socket is statefull it will not support!
The issue likely lies in the mismatch between the stateless nature of Next.js and the stateful nature of WebSockets. To handle WebSockets in a Next.js 15 App Router setup, you’ll need a separate server or middleware to maintain the WebSocket state.
Hi Brea, Thank you. I am getting this error when I run it. Do you know what is wrong?
Hi, John. What's the error?
Can't connect mine could you help me! you do have discord anything like that! I"m using next.js 15 app router. as it's stateless so socket is statefull it will not support!
The issue likely lies in the mismatch between the stateless nature of Next.js and the stateful nature of WebSockets. To handle WebSockets in a Next.js 15 App Router setup, you’ll need a separate server or middleware to maintain the WebSocket state.
@@CodeWithBrea Yes, you are right! I'm going to go with a different server!