Reputation: 69
I want to use Server Sent events in Laravel and not websockets. How can I hook server sent events up to Laravels event broadcasting functionality? I would like to maintain a similar experience to using websockets in Laravel if possible. Would it be possible to keep using Pusher channels as well?
Upvotes: 0
Views: 374
Reputation: 256
The benefit of websockets is that it allows you to relay real-time updates from the backend to the front-end and make client-side events appear in real time. Therefore I would say that you need websockets. From my own exprience, Pusher is excellent for this.
Upvotes: 1