I'm creating a game application with a lobby. When the owner clicks "start" all of the lobby members are redirected to the game page. I have special socket.io disconnect code for the lobby page and the game page. How can I detect which page the client is coming from?
For clarification, it shouldn't be able to be modified client-side.