Hi, after trying out the chat template with the Multiplayer Plugin I decided I wanted to look for some alternatives. And I thought, if you can create (for example) a login system with a database in a server, some PHP and the AJAX object, you would probably also be able to make a chat like this.
If this is possible, I assume it will work muuch better than a chat with the Multiplayer Plugin (well, this isn't really difficult ). And here comes my question: how would you do this?
I had imagined you would have to create a database with three columns (ID of the message, Username and message) and then every single message would become a row in the database (after sending the message to the database via AJAX). But this doesn't seem very clean to me: if you have e.g. 4k messages, would this mean your database would have also 4k rows?
Can you exchange this huge amount of data with the AJAX object (POST/GET)?
Else, how can you make the capx to automatically "download" a new message whenever another user sends a message (eventually whenever a new row is added to the database)?
Thank you for your help