title: Client can't connect to flask-socketio server when rendering from a different flask route
body: <p>I can't find the reason why my clients are not connecting to the server after being redirected to a new flask view/route/html from the &quot;/&quot; index.</p>
  <p>The clients can be connected to socketio correctly through the &quot;/&quot; route but to no other. I haven't added any code as I think it is more of a not understanding situation, but just so you get an idea I have based my project on <a href="https://github.com/shanealynn/async_flask" rel="nofollow noreferrer">https://github.com/shanealynn/async_flask</a>, just adding a new route to which when the client accesses the rendered template the connection to the socket is lost and not initiated again. I have imported the js/application.js into this new rendered html template and I think everything should be working fine, the connection just seems to not trigger.</p>
  <p>What are the possible error sources I should be looking into?</p>