So I'am struggling and don't really know what i need or want to use for this problem. The thing is I have javascript program that checks a database and sends it to another one, this program has alot of error handling.

On the other side i'am building a platform/dashboard that displays the errors. I've built it in PHP Laravel.

My question is:
How can i let my PHP dashboard "listen" to the javascript program and immediately when an error is thrown show it on the dashboard? While they are both running on different servers. I havent found a solution thus far

How would you approach this problem?

Best regards,