Sockets Stop When Navigating to a Page Using Browser Back Button

Hi.
We have a page (A) which has socket element in NodeJS SPA.
If I click on some link on page (B) to go to A, the socket connection is established and everything works well.
Now, if I navigate to another page from A to say C, sockets stop working. Which is good.
Next, if I press browser back button while on C, page A loads but socket connection is not established. Breaking the page.

What am I missing in this setup here?

Community Page
Last updated: