Maintaining websocket connection in react router
问题 I have a React/Redux app using React Router for routing. As part of this app I set up a websocket connection. An issue I'm facing is that when navigating directly to a url, the connection is dropped. For example: User lands on home page at www.app.com/ Websocket connection is established. User naviagtes to www.app.com/link via React Router browserHistory (there is no code to establish any connection on this page). Connection is maintained. This works as expected. However: User lands on home