Next.js Discord

Discord Forum

Third party backend websockets

Unanswered
Minskin posted this in #help-forum
Open in Discord
MinskinOP
Hey, i would like to use a websocket with my third party backend. Therefore i would need 2 websockets, one going from backend to next, and one from next to client. Where in my nextjs repo would i position such code, so that it is just run on the server? Im using the app directory

1 Reply