How can I check if a new entry is added to the table, then make a request?
That is, the client has sent a message to add to the database.
In the consultant window we make a request to the database. We pull the sent message from the client .
I know the option to send a request to the database every second through Settimeout, ajax. But I think this will create a lot of problems because of the many requests that seem to block the site.