I need to create a message history that updates in real time [closed]

1

I created a chat, where 2 people can chat. besides the option to write a new message, the chat presents the user with a message history that shows the messages exchanged between him and the other user. as soon as a user writes a new message, it is added to the database. Thus the messages stored in the database are queried via php, and presented in the history. However, this does not occur automatically, since it is necessary to update the browser for the message history to update itself. So I need help developing a way to track the history of messages if you update in real time, not requiring the refresh of the browser manually.

    
asked by anonymous 25.12.2018 / 22:40

0 answers