Simone Neil-Jones Non
Simone Neil-Jones Non

Reputation: 69

Server Sent Events in Laravel

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

Answers (1)

Hamish Gibson
Hamish Gibson

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

Related Questions