#3857 pusher error

This commit is contained in:
diashalabi 2021-09-24 11:04:59 +03:00
parent 9815b1f7ac
commit 654b277823
3 changed files with 8 additions and 12 deletions

View File

@ -18,4 +18,4 @@ class BroadcastServiceProvider extends ServiceProvider
require base_path('routes/channels.php');
}
}
}

View File

@ -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'
],
],

View File

@ -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;
});