Simple Event Streaming in Laravel

EventSource is a solution for listening to server-send events from our client-side. It’s way simpler than WebSockets to implement, but also it has strong limitations. Let’s take a look at a simple implementation in Laravel, both JavaScript and server-side.