Do you have a pusher server running locally? Or are you using the actual pusher service?
If it is the real pusher, you shouldn't set the host manually
Here is the default config https://github.com/laravel/laravel/blob/8.x/config/broadcasting.php#L33
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I'm trying to use broadcast events within an already running solution. It is using docker-compose with 3 services: app, nginx, postgres.
I'm trying to use broadcast using Pusher. I did the config in .env, changed the event to implements ShouldBroadcast. Using log as the broadcast driver, it is working... but when I changed to pusher, it is not working... it gives me the follwing error:
Illuminate\Broadcasting\BroadcastException
Pusher error: cURL error 7: Failed to connect to 127.0.0.1 port 6001: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I realized it has something to do with the field host in config/broadcasting.php. But still dunno what I'm missing.
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => false,
'host' => '127.0.0.1',
'port' => 6001,
'scheme' => 'http'
],
],
Anyone can give me some directions or hints on what to look for?
Do you have a pusher server running locally? Or are you using the actual pusher service?
If it is the real pusher, you shouldn't set the host manually
Here is the default config https://github.com/laravel/laravel/blob/8.x/config/broadcasting.php#L33
Please or to participate in this conversation.