Help! Making private server for HTML games

Nen'on

Solid & Active Platinian
Original poster
Aug 26, 2019
58
18
8
26
Nowhere
Is it possible to make a private server for a HTML game? Hacking or modding the game itself is out of the question, I'm not looking to a big time hacking a server. So I was thinking about creating one. If there's anyone that can help with this, please you can contact me and we can talk about it
 

TagsX

Platinian
May 29, 2023
32
6
8
18
saudi-arabia
Yes, you can watch how the client works and based on that, create your server. I don't have an example right now but i try my best to make one,

Let's assume it's json data

Client => serverexample.php/login => {"token":"ABCDEF123456",...}
Server => Response => {"currency":999,"gems":100,...}

Server => Client => {"name/id":"NAMEME","type":"FriendRequest",...}
Client => response => {"response":"deny",...}


Client => exampleserver.php/purchase => {"itemid":"1234567"}
Server => response => {"error":173,"message":"not enough gems",...}

This is just an example of php server.