How do you have websockets auto-disconnect when the user navigates using the back button or links
Unanswered
Belgian Hare posted this in #help-forum
Belgian HareOP
I have a route that connects to a server with a websocket and the websocket correctly disconnects when the tab is closed but does not disconnect when the user navigates using the back or forward buttons. How do I have websockets auto-disconnect in that case?
1 Reply
Belgian HareOP
I'm using the next js app router for context