Posted April 16, 2024 by QuantDev
#announcement
Starting later today, Chatroom is closing. The chatroom section of the game will no longer be accessible starting next update.
For the game to receive chat messages in real-time, the game sends a GET request ** every second. ** (A GET request is when you retrieve data from a server.) For the game to send chat messages in real time, the game sends a POST request (a POST request is when you upload data to a server.)
Now, imagine there's 20 people in the same chatroom. The server receives 20 GET requests PER second, and while it may not lag the server, the free plan of NGROK isn't for that. Ngrok is a tool which exposes your local server to the whole internet. It comes with a free plan, but it's very limited! The server can only get 20,000 requests *per month*. If it goes past it, ngrok shuts down the server.
TL;DR - it just isn't worth it.
There's a little chance it will return, but for now, I don't know yet.
Even though nobody joined, it was a nice experiment after all, and it helped me know how PHP and ngrok work.