martinszeltins's avatar

Which SSE implementation to use with Laravel?

Looks like there are multiple SSE packages for Laravel to choose from. What is you experience with SSE and Laravel? Which library provides the best DX and works best?

There is Laravel Wave: https://github.com/qruto/laravel-wave

And then there is Mercure: https://github.com/mvanduijker/laravel-mercure-broadcaster

And Laravel SSE: https://github.com/sarfraznawaz2005/laravel-sse

I don't want Websockets / Reverb since that is an overkill. SSE is much simpler and easier and totally fine for my use case (I am not building a real time game or chat app). I just need to send data from backend to frontend.

1 like
1 reply
vincent15000's avatar

I don't know SSE, it looks interesting.

It seems to be unidirectional, so just useful for user notifications.

Are you using Blade or a JS framework for the frontend ?

Please or to participate in this conversation.