I have an Event that im trying to broadcast and when I use ShouldBroadcast it uses reverb, the way its configured in my echo.js and in my .env BROADCAST_DRIVER=reverb
When I change to ShouldBroadcastNow and I try to run my command function I get the following error:
php artisan polygon:stream
Illuminate\Broadcasting\BroadcastException
Pusher error: App key 58fjl266qmdizrzenfef not in this cluster. Did you forget to specify the cluster?
I do not want to pay for pusher, I want to use reverb to consume the data.
This is how my broadcasting.php file looks like:
'default' => env('BROADCAST_CONNECTION', 'reverb'),
'connections' => [
'reverb' => [
'driver' => 'reverb',
'host' => env('127.0.0.1'),
'port' => env(8080),
'scheme' => env('REVERB_SCHEME', 'http'),
'app_id' => env('REVERB_APP_ID'),
'key' => env('REVERB_APP_KEY'),
'secret' => env('REVERB_APP_SECRET'),
'options' => [
'useTLS' => env('REVERB_USE_TLS', false),
],
],
If I change from ShouldBroadcastNow to ShouldBroadcast I can see logs coming in. However I do not need a queue.
If anyone knows how to get Laravel to try and use pusher when using ShouldBroadcastNow that would be great. Thanks!