I would post this on https://stackoverflow.com/, but figured I am not looking for code, just an idea how to accomplish this.
I have a gameserver that interacts with
nodejs and uses the
websocket module. It works great, there is one problem:
When a user is joining a game and the map gets loaded, a user could easily press F12, go into Chrome dev tools and remove the
overflow:hidden css attribute, thus.. revealing the rest of the map. (A Web-based map hack!). My map dimensions are 3000x3000 + in size.
I need some type of way to to send something to nodejs every xx seconds and then nodejs needs to send back a token with that request as well to keep that css attribute at
overflow:hidden and if the data being sent is manipulated in anyway, I can then shut down that player's connection.
Doing this method, I would use the
Edit: And yes, this will require more bandwidth, but well worth it imo.