Does moving between pages end a Socket.io connection in Flask?

238 Views Asked by At

This is a conceptual problem I'm not quite understanding when it comes to Websockets.

I'm trying to make a game in python using Flask, Flask-socket.io and jQuery. I'm using 'Rooms' to store the id of the game, so players can connect to the same game using a specific id.

Once the game has started, do I need stay on the same html page and just change the content using jQuery, or can I move to a new html page (flask route) and access the 'Room' data there?

Thanks.

0

There are 0 best solutions below