Ad

Do I Need A Node.js Server As Well As Laravel Echo Server?

- 1 answer

I am struggling to get broadcasting working with Laravel. I am working with multiple tutorials because none of them fully explain everything I need to understand. I just read a tutorial that included setting up a Node.js Server with ioredis but I assumed that Laravel Echo Server is doing that job already. Is it?

Ad

Answer

No, you don't need a node.js server. You can use laravel-websockets package which exempts you from using any kind of broadcasting server. I'm using it for broadcasting with laravel Echo and it's really simple to set up by following installation instructions.

In fact, the best option is to set it up with pusher.

https://docs.beyondco.de/laravel-websockets/

Ad
source: stackoverflow.com
Ad