Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thesimons's avatar

Echo looking for Pusher even if Reverb is set everywhere

Hello,

I have created a new laravel project just to test out Reverb + Echo. I have a "blank" Laravel installation.ù

I have installed Reverb via

php artisan install broadcasting

I keep getting the following error:

Error: Pusher client not found. Should be globally available or passed via options.client

app.js is imported via Vite into the view

import "./bootstrap";
Echo.channel("chat").listen("MessageSent", (e) => {
    console.log("Messaggio ricevuto:", e.message);
});

and bootstrap.js

window.Echo = new Echo({
    broadcaster: "reverb",
    host: window.location.hostname + ":8080", // o porta configurata
});

I'm using Herd Pro. JS files aren't cached. Pusher isn't set anywhere. I can't understand the nature of the error.

Thanks, Simon

0 likes
1 reply
thesimons's avatar

Hello,

I have fixed it. Reading better the documentation I realised that even if I don't use Pusher I needed it for the web socket.

Now it works properly :)

Thanks, Simon

Please or to participate in this conversation.