I am making a website for ordering coffee for a local coffee shop. When the customer orders via the website, I want the order to appear on the admin page for orders without refreshing the page. I’ve been looking for methods such as long polling and websockets but I’m not sure which to use or how to implement it. I’m using AJAX with jQuery and PHP for the backend. The order is stored in a database and the admin page receives it via an ajax call. How do I make this so that I don’t have to refresh the page each time an order might come (I’ve tried auto-refreshing but it defeats the purpose of using ajax).