Please share the experience of creating a chat in PHP or javascript. I spent a whole day yesterday exploring WebSocket, even rented a VDS, connected this dll or don't know what to call it. I installed ready-made PHP / WbSocket chat scripts on it and none of them worked. Just spent 1 day and money.
There was experience in creating a chat in PHP / Mysql but due to frequent requests to the database, hosting temporarily disables access. So already disappears.
I thought I would implement it on files or on sqlite3, but I don’t know what the upload to the server will be if for example 100 people will be in the chat and each will receive requests for example 1 time in 5 (10) seconds. Where can I see or who knows this is bad or completely horrible?
If someone helps me to figure out why my WebSocket chat does not work for me, I will be very grateful.