From 654b27782317dfdf33c3d5ca1045d388f3042556 Mon Sep 17 00:00:00 2001 From: diashalabi Date: Fri, 24 Sep 2021 11:04:59 +0300 Subject: [PATCH] #3857 pusher error --- app/Providers/BroadcastServiceProvider.php | 2 +- config/broadcasting.php | 16 ++++++---------- routes/channels.php | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php index 1670987c1..395c518bc 100644 --- a/app/Providers/BroadcastServiceProvider.php +++ b/app/Providers/BroadcastServiceProvider.php @@ -18,4 +18,4 @@ class BroadcastServiceProvider extends ServiceProvider require base_path('routes/channels.php'); } -} \ No newline at end of file +} diff --git a/config/broadcasting.php b/config/broadcasting.php index 47a8db467..ec25f0541 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -32,19 +32,15 @@ return [ 'pusher' => [ 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY', '12345'), - 'secret' => env('PUSHER_APP_SECRET', '12345'), - 'app_id' => env('PUSHER_APP_ID', '12345'), + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'cluster' => env('PUSHER_APP_CLUSTER', 'mt1'), - 'encrypted' => env('BROADCAST_SSL', false), + 'cluster' => env('PUSHER_APP_CLUSTER'), + 'encrypted' => false, 'host' => '127.0.0.1', 'port' => 6001, - 'scheme' => env('BROADCAST_SSL', false) ? 'https' : 'http', - 'curl_options' => [ - CURLOPT_SSL_VERIFYHOST => 0, - CURLOPT_SSL_VERIFYPEER => 0, - ] + 'scheme' => 'http' ], ], diff --git a/routes/channels.php b/routes/channels.php index 5d451e1fa..9c586faf0 100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -13,6 +13,6 @@ use Illuminate\Support\Facades\Broadcast; | */ -Broadcast::channel('App.Models.User.{id}', function ($user, $id) { +Broadcast::channel('Anomaly.UsersModule.User.UserModel.{id}', function ($user, $id) { return (int) $user->id === (int) $id; });