Can i use websockets in next js api routes?
Unanswered
Toyger posted this in #help-forum
ToygerOP
I need to have a api route in next js that is responsible for connect with my frontend. I haven't found any proper resource regarding the same. Any help will be much appreciated. Thank you.
1 Reply
Giant panda
Next is hosted serverless in most cases and doesn't support websockets server-side. You need a managed service or a separate stateful backend for that.