Next.js Discord

Discord Forum

What's the recommended way of using Web Sockets?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I'm not sure how to open a websocket connection to a Java server from the NextJS server side.

If I open a websocket connection from the client side it always gets closed when I switch pages.

Anyone have more experience? I feel I'm missing something. Thanks!

0 Replies