zoi(13:06:56)
you have some javascript to send that to the backend which stores it in a database, and everyone else is asking that database every couple of seconds if there are new messages to add to the page
LittleWhite(13:06:50)
I have guessed that zoi (about what the PHP does :D)