Hello, I use websockets with laravel on local host and it's works perfecly. Now I configured my websockets.php file on server. But I getting this error: pusher.min.js:8 WebSocket connection to 'wss://mydomain.lt:6001/app/local?protocol=7&client=js&version=4.3.1&flash=false' failed:.
My websockets config
'apps' => [
[
'id' => env('PUSHER_APP_ID'),
'name' => env('APP_NAME'),
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'path' => env('PUSHER_APP_PATH'),
'capacity' => null,
'enable_client_messages' => false,
'enable_statistics' => true,
'encrypted' => true,
],
],
My broadcasting config
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'host' => '127.0.0.1',
'port' => 6001,
'scheme' => 'https',
'useTLS' => true,
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
]
],
],
I uploaded free SSL files to my domain directory I also tried with original directory;
My env SSL:
LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT=/www/wwwroot/mydomain.lt/fullchain.pem
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK=/www/wwwroot/mydomain.lt/privkey.pem