#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

@ -32,19 +32,15 @@ return [
'pusher' => [ 'pusher' => [
'driver' => 'pusher', 'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY', '12345'), 'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET', '12345'), 'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID', '12345'), 'app_id' => env('PUSHER_APP_ID'),
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER', 'mt1'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => env('BROADCAST_SSL', false), 'encrypted' => false,
'host' => '127.0.0.1', 'host' => '127.0.0.1',
'port' => 6001, 'port' => 6001,
'scheme' => env('BROADCAST_SSL', false) ? 'https' : 'http', 'scheme' => 'http'
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
]
], ],
], ],

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; return (int) $user->id === (int) $id;
}); });