I recently uploaded a basic JavaScript memory game to Heroku using lite-server.
Surprisingly, when one user flips a card, all other users can see the card turning as well. I am puzzled as to why this is happening. My understanding was that client-side actions were contained to the individual client and couldn't affect the server or other users in any way. How can I stop a user action (like clicking on a card) from affecting everyone else? Thank you
Response: Initially, I deployed the game with lite-server instead of express. Lite-server has file listening enabled, which allowed user actions to impact all players. The straightforward solution was to switch to using express on Heroku, rather than lite-server!