I am using laravel 4 to build an app that holds information the admin puts in, and the information is displayed onto another screen in another building. For example, Admin puts in new orders and new customers, and the production needs to see the current orders. I am at first I was trying to use.
setInterval() or setTimeout()
on the production side of the screen. IT Works!! however, I do not find it very beneficial to having a server constantly refreshing. I have messed around with some socket programming, at least what I understood. Although, I feel as though I am looking and researching in the wrong place. Does any one know how I can implement a live real-time app that pushes new data straight to the view. For example. When the Admin puts an order in.... this fires and event. the event pushes the new database content to any one viewing the specific view? (with out the viewer having to refresh the page.)
How is this possible? Because I feel lost!!
- Also note: that this will be running on the companies server, if it helps using local machines.
I am using laravel 4 + MAMP + bootstrap