Next.js Discord

Discord Forum

Websockets question

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
where in my NextJS backend should I place this file, and how should I import it? It will be used to communicate with my websocket app.

2 Replies

I don't think you are supposed to place this anywhere, if you have a websocket server... use that in the client component (frontend)
moreover, I am not sure what you are really trying to achieve