Skip to content
Advertisement

Laravel Echo Listener not working on frontend

I have created an event:

JavaScript

Here is the bootstrap.js:

JavaScript

and the route:

JavaScript

laravel-echo-server.json :

JavaScript

ENV file:

JavaScript

When I set the broadcast driver to log:

JavaScript

When I set the broadcast driver to redis & monitor redis via CLI:

JavaScript

It looks like everything works fine, but the browser console in frontend doesn’t show any logs.
What’s the problem? Why can’t I get the listener to work on frontend?

I tried changing the broadcastAs, and also putting a dot before the name in the frontend.
But still no luck.

Advertisement

Answer

It so strange, however, I fixed it by downgrading the socket.io-client from 3.0.3 to 2.3.0

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement