Laravel Broadcasting
When using Laravel's event broadcasting feature within your application, soketi is even easier to configure. First, replace the default pusher configuration in your application's config/broadcasting.php file with the following configuration:
1
'connections' => [
2
3
// ...
4
​
5
'pusher' => [
6
'driver' => 'pusher',
7
'key' => env('PUSHER_APP_KEY', 'app-key'),
8
'secret' => env('PUSHER_APP_SECRET', 'app-secret'),
9
'app_id' => env('PUSHER_APP_ID', 'app-id'),
10
'options' => [
11
'host' => env('PUSHER_HOST', '127.0.0.1'),
12
'port' => env('PUSHER_PORT', 6001),
13
'scheme' => env('PUSHER_SCHEME', 'http'),
14
'encrypted' => true,
15
'useTLS' => env('PUSHER_SCHEME') === 'https',
16
],
17
],
18
],
Copied!
To configure the client for SSL, you should set the scheme option to http and the useTLS option to true

Self-signed Certificates

Due to implementation changes in the Pusher PHP SDK, releases of the SDK since the 6.0 release do not support curl_options; therefore, self-signed SSL certificates will fail certificate validation since certificate verification cannot be disabled. To bypass SSL Verification, you must use Pusher PHP SDK version 5.0.3.
Copy link